dev798
wxy 2024-03-27 21:30:58 +08:00
parent 29fd6aaf4c
commit 7e2fe90b96
3 changed files with 192 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package com.muyu.product.domain;
import com.muyu.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @ClassName ladder
* @Description
* @Author
* @Date 2024/3/24 10:10
*/
@Data
@ApiModel(value = "Ladder", description = "阶梯信息")
public class Ladder extends BaseEntity {
@ApiModelProperty(value = "阶梯ID")
private Integer id;
@ApiModelProperty(value = "阶梯数量")
private Integer ladderNum;
@ApiModelProperty(value = "阶梯折扣")
private Double ladderDiscount;
}

View File

@ -0,0 +1,33 @@
package com.muyu.product.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.Data;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* @author A3385
*/
@Data
@ApiModel(value = "Preference", description = "特惠信息")
public class Preference extends BaseEntity {
@ApiModelProperty(value = "特惠ID")
private Integer id;
@ApiModelProperty(value = "特惠开始时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date preferenceStartTime;
@ApiModelProperty(value = "特惠结束时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date preferenceEndTime;
@ApiModelProperty(value = "促销价格")
private Double preferencePrice;
}

View File

@ -0,0 +1,133 @@
package com.muyu.product.domain.util;
/**
* @Author: wangxinyuan
* @Date: 2024/3/27 21:20
*/
public class Constants {
/**
* UTF-8
*/
public static final String UTF8 = "UTF-8";
/**
* GBK
*/
public static final String GBK = "GBK";
/**
* www
*/
public static final String WWW = "www.";
/**
* RMI
*/
public static final String LOOKUP_RMI = "rmi:";
/**
* LDAP
*/
public static final String LOOKUP_LDAP = "ldap:";
/**
* LDAPS
*/
public static final String LOOKUP_LDAPS = "ldaps:";
/**
* http
*/
public static final String HTTP = "http://";
/**
* https
*/
public static final String HTTPS = "https://";
/**
*
*/
public static final Integer SUCCESS = 200;
/**
*
*/
public static final Integer FAIL = 500;
/**
*
*/
public static final String LOGIN_SUCCESS_STATUS = "0";
/**
*
*/
public static final String LOGIN_FAIL_STATUS = "1";
/**
*
*/
public static final String LOGIN_SUCCESS = "Success";
/**
*
*/
public static final String LOGOUT = "Logout";
/**
*
*/
public static final String REGISTER = "Register";
/**
*
*/
public static final String LOGIN_FAIL = "Error";
/**
*
*/
public static final String PAGE_NUM = "pageNum";
/**
*
*/
public static final String PAGE_SIZE = "pageSize";
/**
*
*/
public static final String ORDER_BY_COLUMN = "orderByColumn";
/**
* "desc" "asc".
*/
public static final String IS_ASC = "isAsc";
/**
*
*/
public static final long CAPTCHA_EXPIRATION = 2;
/**
*
*/
public static final String RESOURCE_PREFIX = "/profile";
/**
* json
*/
public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.bwie" };
/**
* 访
*/
public static final String[] JOB_WHITELIST_STR = { "com.bwie.job.task" };
/**
*
*/
public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
"org.springframework", "org.apache", "com.bwie.common.core.utils.file" };
}