Commit 181a9a0c by Java-张振楠

①请求中增加构造方法

②增加公共常量
parent 409bdd1e
...@@ -11,6 +11,13 @@ public class Request implements java.io.Serializable { ...@@ -11,6 +11,13 @@ public class Request implements java.io.Serializable {
private int pageNum = 1;// 页码 private int pageNum = 1;// 页码
private int pageSize = 15;// 页数 private int pageSize = 15;// 页数
public Request() {
}
public Request(String subMerchantCode) {
this.subMerchantCode = subMerchantCode;
}
public String getSubMerchantCode() { public String getSubMerchantCode() {
return subMerchantCode; return subMerchantCode;
} }
......
package com.thinkgem.jeesite.common.constant; package com.thinkgem.jeesite.common.constant;
import java.text.SimpleDateFormat;
/** /**
* 常量数据 * 常量数据
*/ */
...@@ -9,7 +11,15 @@ public class ComCode { ...@@ -9,7 +11,15 @@ public class ComCode {
*/ */
public static final String signCode = "Y0UKA@2018"; public static final String signCode = "Y0UKA@2018";
/** /**
* 系统公共返回值 * 时间相关参数
*/
public static final long mills = 1000;
public static final long seconds = 60;
public static final long minutes = 60;
public static final long hours = 24;
public static final SimpleDateFormat YYYYMMDD_HHMMSS = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
/**
* 系统公共
*/ */
public static final String STATUS_CODE_2000 = "2000"; public static final String STATUS_CODE_2000 = "2000";
public static final String STATUS_CODE_2000_DESC = "成功"; public static final String STATUS_CODE_2000_DESC = "成功";
...@@ -19,8 +29,32 @@ public class ComCode { ...@@ -19,8 +29,32 @@ public class ComCode {
public static final String STATUS_CODE_9998_DESC = "通用异常"; public static final String STATUS_CODE_9998_DESC = "通用异常";
/** /**
* 验证码返回值 * 验证码
*/ */
public static final String STATUS_CODE_3001 = "3001"; public static final String STATUS_CODE_3001 = "3001";
public static final String STATUS_CODE_3001_DESC = "验证码未输入功能代码或手机号"; public static final String STATUS_CODE_3001_DESC = "验证码未输入功能代码或手机号";
/**
* 用户相关
*/
public static final String STATUS_CODE_4001 = "4001";
public static final String STATUS_CODE_4001_DESC = "必传信息为空";
public static final String STATUS_CODE_4002 = "4002";
public static final String STATUS_CODE_4002_DESC = "用户名或密码错误";
public static final String STATUS_CODE_4003 = "4003";
public static final String STATUS_CODE_4003_DESC = "用户名或验证码错误";
public static final String STATUS_CODE_4004 = "4004";
public static final String STATUS_CODE_4004_DESC = "该手机号尚未注册,请注册后登录";
public static final String STATUS_CODE_4005 = "4005";
public static final String STATUS_CODE_4005_DESC = "修改密码失败";
public static final String STATUS_CODE_4006 = "4006";
public static final String STATUS_CODE_4006_DESC = "系统中没有该推荐用户";
public static final String STATUS_CODE_4007 = "4007";
public static final String STATUS_CODE_4007_DESC = "注册手机号已存在";
public static final String STATUS_CODE_4008 = "4008";
public static final String STATUS_CODE_4008_DESC = "注册手机号与推荐手机号重复";
public static final String STATUS_CODE_4009 = "4009";
public static final String STATUS_CODE_4009_DESC = "验证码已过期";
public static final String STATUS_CODE_4010 = "4010";
public static final String STATUS_CODE_4010_DESC = "验证码场景错误";
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment