All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.haoxuer.discover.user.utils.CodeCatalog Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.haoxuer.discover.user.utils;

import java.util.HashMap;

/**
 * Created by ada on 2017/6/29.
 */
public class CodeCatalog {

  private static HashMap codes = new HashMap();

  static {
    codes.put("register", 1);
    codes.put("login", 2);
    codes.put("binding", 3);
    codes.put("reset", 4);
    codes.put("changePhone", 5);
  }

  public static Integer catalog(String catalog) {
    return codes.get(catalog);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy