mirror of
https://github.com/abcv7/sfbx-cloud.git
synced 2026-08-16 19:49:49 +00:00
功能:在保险、规则、交易、积分和短信模块中实现初始功能和基础组件。
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<artifactId>sfbx-framework</artifactId>
|
||||
<groupId>com.itheima.sfbx</groupId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<!--基础模块-工具包-->
|
||||
<artifactId>framework-commons</artifactId>
|
||||
<name>framework-commons</name>
|
||||
<!-- FIXME change it to the project's website -->
|
||||
<url>http://www.example.com</url>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-autoconfigure</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.zxing</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ma.glasnost.orika</groupId>
|
||||
<artifactId>orika-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-extension</artifactId>
|
||||
<version>${mybatis-plus-boot-starter.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-pool2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>transmittable-thread-local</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.itheima.sfbx.framework.commons.basic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @Description 返回结果
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ResponseResult<T> implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "状态码")
|
||||
private Integer code;
|
||||
|
||||
@ApiModelProperty(value = "状态信息")
|
||||
private String msg;
|
||||
|
||||
@ApiModelProperty(value = "返回结果")
|
||||
private T data;
|
||||
|
||||
@ApiModelProperty(value = "操作人Id")
|
||||
private Long operatorId;
|
||||
|
||||
@ApiModelProperty(value = "操作人名称")
|
||||
private String operatorName;
|
||||
|
||||
@ApiModelProperty(value = "操作人性别")
|
||||
private String operatorSex;
|
||||
|
||||
@ApiModelProperty(value = "VO类")
|
||||
private String _class;
|
||||
|
||||
@ApiModelProperty(value = "数据说明")
|
||||
private String tip;
|
||||
|
||||
@ApiModelProperty(value = "操作时间")
|
||||
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
||||
@JsonSerialize(using = LocalDateTimeSerializer.class)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//set
|
||||
private LocalDateTime operationTime;
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.basic;
|
||||
|
||||
/**
|
||||
* @ClassName CacheConstant.java
|
||||
* @Description 基础缓存父类
|
||||
*/
|
||||
public class CacheConstant {
|
||||
|
||||
//默认redis等待时间
|
||||
public static final int REDIS_WAIT_TIME = 5;
|
||||
|
||||
//默认redis自动释放时间
|
||||
public static final int REDIS_LEASETIME = 4;
|
||||
|
||||
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
|
||||
package com.itheima.sfbx.framework.commons.constant.basic;
|
||||
|
||||
|
||||
/**
|
||||
* @Description 静态变量
|
||||
*/
|
||||
public class SuperConstant {
|
||||
|
||||
//常量:数据有效
|
||||
public static final String DATA_STATE_0 = "0";
|
||||
|
||||
//常量:数据无效
|
||||
public static final String DATA_STATE_1 = "1";
|
||||
|
||||
//常量:数据伪删除
|
||||
public static final String DATA_STATE_2 = "2";
|
||||
|
||||
//树形根节点父Id
|
||||
public static final String ROOT_PARENT_ID = "100000000000000";
|
||||
|
||||
//常量目录
|
||||
public static final String CATALOGUE = "c";
|
||||
|
||||
//常量菜单
|
||||
public static final String MENU = "m";
|
||||
|
||||
//常量平台
|
||||
public static final String SYSTEM = "s";
|
||||
|
||||
//前端显示布局
|
||||
public static final String COMPONENT_LAYOUT="Layout";
|
||||
|
||||
//登录短信验证码
|
||||
public static final String LOGIN_CODE = "login:code:";
|
||||
|
||||
//地域中国ID
|
||||
public static final Long CHINA_CODE = 0L;
|
||||
|
||||
//分割字符
|
||||
public static final String COMMA = ",";
|
||||
|
||||
//否
|
||||
public static final String NO = "NO";
|
||||
|
||||
//是
|
||||
public static final String YES = "YES";
|
||||
|
||||
//男
|
||||
public static final String MAN = "0";
|
||||
|
||||
//女
|
||||
public static final String WOMAN = "1";
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.category;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.SuperConstant;
|
||||
|
||||
/**
|
||||
* CategoryConstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 分类常量
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class CategoryConstant extends SuperConstant {
|
||||
|
||||
//常量:首页展示
|
||||
public static final String SHOW_INDEX_STATE_0 = "0";
|
||||
|
||||
//常量:首页不展示
|
||||
public static final String SHOW_INDEX_STATE_1 = "1";
|
||||
|
||||
|
||||
//分类类型:0推荐分类
|
||||
public static final String RECOMMEND_TYPE = "0";
|
||||
|
||||
//分类类型:1产品分类
|
||||
public static final String PRODUCT_TYPE = "1";
|
||||
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.click;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ClickDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 点击传入对象
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class ClickDTO {
|
||||
|
||||
@ApiModelProperty(value = "请求id")
|
||||
private String requestId;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
private String host;
|
||||
|
||||
@ApiModelProperty(value = "ip地址")
|
||||
private String hostAddress;
|
||||
|
||||
@ApiModelProperty(value = "请求路径")
|
||||
private String requestUri;
|
||||
|
||||
@ApiModelProperty(value = "请求方式")
|
||||
private String requestMethod;
|
||||
|
||||
@ApiModelProperty(value = "请求body")
|
||||
private String requesBody;
|
||||
|
||||
@ApiModelProperty(value = "应答body")
|
||||
private String responseBody;
|
||||
|
||||
@ApiModelProperty(value = "应答code")
|
||||
private String responseCode;
|
||||
|
||||
@ApiModelProperty(value = "应答msg")
|
||||
private String responseMsg;
|
||||
|
||||
@ApiModelProperty(value = "用户")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名称")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty(value = "业务类型")
|
||||
private String businessType;
|
||||
|
||||
@ApiModelProperty(value = "设备号")
|
||||
private String deviceNumber;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNO;
|
||||
|
||||
@ApiModelProperty(value = "性别")
|
||||
private String sex;
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.dict;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @ClassName DataDictCacheConstant.java
|
||||
* @Description 数字字典缓存常量
|
||||
*/
|
||||
public class DataDictCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "data_dict:";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//所有父key
|
||||
public static final String PARENT_KEY= PREFIX+"parent_key&ttl=-1";
|
||||
|
||||
//所有dataKey
|
||||
public static final String DATA_KEY= PREFIX+"data_key&ttl=-1";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
|
||||
public static final String QUESTION = PREFIX+"question";
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.dict;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @ClassName PlacesCacheConstant.java
|
||||
* @Description 区域缓存常量
|
||||
*/
|
||||
public class PlacesCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "places:";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//获得所有不重复的ParentKey的集合
|
||||
public static final String LIST= PREFIX+"list&ttl=-1";
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.file;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @ClassName DataDictCacheConstant.java
|
||||
* @Description 附件缓存常量
|
||||
*/
|
||||
public class FileCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "file:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//业务key前缀
|
||||
public static final String BUSINESS_KEY = PREFIX+"business_key&ttl=-1";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list分页
|
||||
public static final String LIST = PREFIX+"list";;
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.file;
|
||||
|
||||
/**
|
||||
* @ClassName FileConstant.java
|
||||
* @Description 文件常量类
|
||||
*/
|
||||
public class FileConstant {
|
||||
|
||||
//阿里云OSS对象存储
|
||||
public static final String ALIYUN_OSS = "ALIYUN_OSS";
|
||||
|
||||
//七牛KODO对象存储
|
||||
public static final String QINIU_KODO = "QINIU_KODO";
|
||||
|
||||
//状态:成功
|
||||
public static final String STATUS_SUCCEED = "SUCCEED";
|
||||
|
||||
//状态:发送中
|
||||
public static final String STATUS_SENDING = "SENDING";
|
||||
|
||||
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.file;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:缓存常量
|
||||
*/
|
||||
public class FilePartCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "file-part:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.insure;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.SuperConstant;
|
||||
import com.itheima.sfbx.framework.commons.exception.ProjectException;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* BUY_MODE_1onstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 保险常量
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class InsureConstant extends SuperConstant{
|
||||
|
||||
//常量:首页展示
|
||||
public static final String SHOW_INDEX_STATE_0 = "0";
|
||||
|
||||
//常量:首页不展示
|
||||
public static final String SHOW_INDEX_STATE_1 = "1";
|
||||
|
||||
//前端约定 金牌保险传值为0
|
||||
public static final String GOLD_INSURE_FRONT = "0";
|
||||
|
||||
//前端约定 安心赔保险传值为1
|
||||
public static final String RELIEVED_INSURE_FRONT = "1";
|
||||
|
||||
//金牌保险(是0 否1)
|
||||
public static final String IS_GOLD_INSURE_SERVER = "0";
|
||||
|
||||
//安心赔(是0 否1)
|
||||
public static final String IS_RELIEVED_INSURE_SERVER = "0";
|
||||
|
||||
//是否有问题(是0 否1)
|
||||
public static final String IS_PROBLEM_0 = "0";
|
||||
|
||||
|
||||
//校验规则:0医疗 1重疾 2意外 3养老 4年金 5旅游 6宠物 7定寿
|
||||
public static final String CHECK_RULE_0 = "0";
|
||||
public static final String CHECK_RULE_1 = "1";
|
||||
public static final String CHECK_RULE_2 = "2";
|
||||
public static final String CHECK_RULE_3 = "3";
|
||||
public static final String CHECK_RULE_4 = "4";
|
||||
public static final String CHECK_RULE_5 = "5";
|
||||
public static final String CHECK_RULE_6 = "6";
|
||||
public static final String CHECK_RULE_7 = "7";
|
||||
|
||||
/**
|
||||
* 根据保险分类id获取 分类名称
|
||||
* @param typeId
|
||||
* @return
|
||||
*/
|
||||
public static String getRuleNameById(String typeId) {
|
||||
switch (typeId){
|
||||
case CHECK_RULE_0:
|
||||
return "医疗";
|
||||
case CHECK_RULE_1:
|
||||
return "重疾";
|
||||
case CHECK_RULE_2:
|
||||
return "意外";
|
||||
case CHECK_RULE_3:
|
||||
return "养老";
|
||||
case CHECK_RULE_4:
|
||||
return "储蓄";
|
||||
case CHECK_RULE_5:
|
||||
return "旅游";
|
||||
case CHECK_RULE_6:
|
||||
return "宠物";
|
||||
case CHECK_RULE_7:
|
||||
return "定寿";
|
||||
default:
|
||||
throw new ProjectException();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有的保险类型
|
||||
* @return
|
||||
*/
|
||||
public static List<String> getAllCheckRule() {
|
||||
return Arrays.asList(CHECK_RULE_0,CHECK_RULE_1,CHECK_RULE_2,CHECK_RULE_3,CHECK_RULE_4,CHECK_RULE_5,CHECK_RULE_6,CHECK_RULE_7);
|
||||
}
|
||||
|
||||
/**
|
||||
* 热搜榜:人种榜类型为0
|
||||
*/
|
||||
private final static String HOT_INSURANCE_TYPE_PERSON = "0";
|
||||
|
||||
/**
|
||||
* 热搜榜:险种榜类型为1
|
||||
*/
|
||||
private final static String HOT_INSURANCE_TYPE_INSURE = "1";
|
||||
|
||||
/**
|
||||
* 判断是否人种榜,险种榜
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public static boolean checkIsInsureType(String type) {
|
||||
return HOT_INSURANCE_TYPE_INSURE.equals(type);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 判断是否是理财险
|
||||
* @param checkRule
|
||||
* @return
|
||||
*/
|
||||
public static boolean checkIsMoneyInsurance(String checkRule) {
|
||||
switch (checkRule){
|
||||
case CHECK_RULE_3:
|
||||
return true;
|
||||
case CHECK_RULE_4:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.log;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @ClassName DataDictCacheConstant.java
|
||||
* @Description 数字字典缓存常量
|
||||
*/
|
||||
public class LogCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "log:";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.plan;
|
||||
|
||||
/**
|
||||
* InsurancePlanConstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 保险计划常量
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class InsurancePlanConstant {
|
||||
|
||||
//按日
|
||||
public static final String Y_D = "y/d";
|
||||
|
||||
//按月
|
||||
public static final String Y_M = "y/m";
|
||||
|
||||
//按年
|
||||
public static final String Y_Y = "y/y";
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.safeguard;
|
||||
|
||||
/**
|
||||
* SafeguardConstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 保险保障项枚举类
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class SafeguardConstant {
|
||||
|
||||
//显示位置:0 列表页
|
||||
public final static String PAGE_LIST = "0";
|
||||
|
||||
//显示位置: 1 详情页
|
||||
public final static String DETAIL_INFO = "1";
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
/**
|
||||
* @ClassName AuthChannelCacheConstant.java
|
||||
* @Description
|
||||
*/
|
||||
public class AuthChannelCacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "auth-channel:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
//站点
|
||||
public static final String WEBSITE = PREFIX+ "web_site:";
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
/**
|
||||
* @ClassName AuthChannelCacheConstant.java
|
||||
* @Description
|
||||
*/
|
||||
public class AuthChannelConstant {
|
||||
|
||||
//投保渠道
|
||||
public static final String CHANNEL_LABEL_INSURE = "INSURE";
|
||||
|
||||
//公钥
|
||||
public static final String PUBLICKEY="publicKey";
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:岗位表缓存常量
|
||||
*/
|
||||
public class CompanyCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "company:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
//站点
|
||||
public static final String WEBSITE = PREFIX+ "web-site:";
|
||||
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:岗位表缓存常量
|
||||
*/
|
||||
public class CompanyConstant extends CacheConstant {
|
||||
|
||||
//停用
|
||||
public static final String status_0 = "0";
|
||||
|
||||
//试用
|
||||
public static final String status_1 = "1";
|
||||
|
||||
//正式
|
||||
public static final String status_2 = "2";
|
||||
|
||||
//正式
|
||||
public static final String CHANNEL_LABEL_WECHAT = "wechat";
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:用户表缓存常量
|
||||
*/
|
||||
public class CustomerCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "customer:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
//用户登录
|
||||
public static final String LOGIN= PREFIX+"login";
|
||||
|
||||
//建立用户与会话唯一标识之间的关系,用于判断剔除
|
||||
public static final String CUSTOMER_TOKEN = PREFIX+"cutomer-token:";
|
||||
|
||||
//建立会话唯一标识与jwtToken之间的关系,用于令牌续期
|
||||
public static final String JWT_TOKEN = PREFIX+"jwt-token:";
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:部门表缓存常量
|
||||
*/
|
||||
public class DeptCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "dept:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
public static final String TREE= PREFIX+"tree";
|
||||
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @ClassName DeptPostUserCacheConstant.java
|
||||
* @Description 部门职位人员缓存常量
|
||||
*/
|
||||
public class DeptPostUserCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "dept-post-user:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
//DeptPostUser-list
|
||||
public static final String DEPT_POST_USER_VO= PREFIX+"vo";
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
/**
|
||||
* @ClassName OauthCacheConstant.java
|
||||
* @Description Oauth认证鉴权cache常量类
|
||||
*/
|
||||
public class OauthCacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "oauth:";
|
||||
|
||||
public static final String ACCESS_TOKEN = PREFIX+"access-token:";
|
||||
|
||||
public static final String REFRESH_TOKEN = PREFIX+"refresh-token:";
|
||||
|
||||
public static final String USER_TOKEN = PREFIX+"user-token:";
|
||||
|
||||
public static final String USER_TOKEN_BIND = PREFIX+"user-token-bind:";
|
||||
|
||||
public static final String LOGIN_CODE = "login:code:";
|
||||
|
||||
}
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName OauthConstant.java
|
||||
* @Description oauth2认证常量
|
||||
*/
|
||||
public class OauthConstant {
|
||||
//授权方式:刷新令牌
|
||||
public static final String GRANT_TYPE_REFRESH_TOKEN = "refresh_token";
|
||||
|
||||
//CLIENTID
|
||||
public static final String OPERATORS_PC = "operators-pc";
|
||||
public static final String OPERATORS_MOBILE = "operators-mobile";
|
||||
public static final String SERVICER_PC = "servicer-pc";
|
||||
public static final String SERVICER_MOBILE = "servicer-mobile";
|
||||
|
||||
//登录类型
|
||||
public static final String USER_USERNAME = "user-username";
|
||||
public static final String USER_MOBILE = "user-mobile";
|
||||
public static final String USER_WECHAT = "user-wechat";
|
||||
public static final String CUSTOMER_USERNAME = "customer-username";
|
||||
public static final String CUSTOMER_MOBILE = "customer-mobile";
|
||||
public static final String CUSTOMER_WECHAT = "customer-wechat";
|
||||
|
||||
//三方登录默认创建用户时默认角色
|
||||
public static final String DEFAULT_ROLE_USER = "DEFAULT_ROLE_USER";
|
||||
public static final String DEFAULT_ROLE_CUSTOMER = "DEFAULT_ROLE_CUSTOMER";
|
||||
|
||||
|
||||
public static final String CLIENT_DETAILS_FIELDS = "client_id, client_secret as client_secret, resource_ids, scope, "
|
||||
+ "authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity, "
|
||||
+ "refresh_token_validity, additional_information, autoapprove";
|
||||
public static final String BASE_CLIENT_DETAILS_SQL = "select " + CLIENT_DETAILS_FIELDS + " from tab_client_details";
|
||||
public static final String FIND_CLIENT_DETAILS_SQL = BASE_CLIENT_DETAILS_SQL + " order by client_id";
|
||||
public static final String SELECT_CLIENT_DETAILS_SQL = BASE_CLIENT_DETAILS_SQL + " where client_id = ?";
|
||||
|
||||
//登录参数KEY定义
|
||||
public static final String USER_ID_KEY = "user_id";
|
||||
public static final String REAL_NAME_KEY = "real_name";
|
||||
public static final String LOGIN_TYPE_KEY = "login_type";
|
||||
public static final String CLIENT_ID_KEY = "client_id";
|
||||
public static final String GRANT_TYPE_KEY = "grant_type";
|
||||
public static final String CLIENT_SECRET_KEY = "client_secret";
|
||||
public static final String USER_NAME_KEY = "username";
|
||||
public static final String SEX_KEY = "sex";
|
||||
public static final String MOBILE_KEY = "mobile";
|
||||
public static final String PASSWORD_KEY = "password";
|
||||
public static final String EXPIRES_IN_KEY = "expires_in";
|
||||
public static final String RESOURCS_KEY = "resources";
|
||||
public static final String AUTHORITIES_KEY = "authorities";
|
||||
|
||||
public static final String ROLES_KEY = "roles";
|
||||
public static final String JTI_KEY = "jti";
|
||||
public static final String CODE_KEY = "code";
|
||||
public static final String OPEN_ID_KEY ="open_id" ;
|
||||
public static final String DEPT_NO_KEY = "dept_no";
|
||||
public static final String POST_NO_KEY = "post_no";
|
||||
public static final String DATA_SECURITY_KEY = "data_security";
|
||||
public static final String ONLY_AUTHENTICATE_KEY = "only_authenticate";
|
||||
public static final String COMPANY_NO_KEY = "company_no";;
|
||||
|
||||
//登录处理集合
|
||||
public static Map<String,String> loginBeanNames = new HashMap<>();
|
||||
static {
|
||||
loginBeanNames.put("username","usernameLoginAuthHandler");
|
||||
loginBeanNames.put("mobile","mobileLoginAuthHandler");
|
||||
loginBeanNames.put("wechat","wechatLoginAuthHandler");
|
||||
}
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:岗位表缓存常量
|
||||
*/
|
||||
public class PostCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "post:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:权限表缓存常量
|
||||
*/
|
||||
public class ResourceCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "resource:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
//tree树形
|
||||
public static final String TREE = PREFIX+"tree";
|
||||
|
||||
//菜单
|
||||
public static final String MENUS= PREFIX+"menus";
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:角色表缓存常量
|
||||
*/
|
||||
public class RoleCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "role:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
/**
|
||||
* @ClassName SecurityConstant.java
|
||||
* @Description 权限常量
|
||||
*/
|
||||
public class SecurityConstant {
|
||||
|
||||
//用户前端token
|
||||
public static final String USER_TOKEN = "user-token";
|
||||
|
||||
//本人
|
||||
public static final String DATA_SCOPE_0 = "0";
|
||||
|
||||
//自定义
|
||||
public static final String DATA_SCOPE_1 = "1";
|
||||
|
||||
//加密秘钥
|
||||
public static final String APP_SECRET = "app-secret";
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @Description:用户表缓存常量
|
||||
*/
|
||||
public class UserCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "user:";
|
||||
|
||||
//缓存父包
|
||||
public static final String BASIC= PREFIX+"basic";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
|
||||
//list下拉框
|
||||
public static final String LIST= PREFIX+"list";
|
||||
|
||||
//用户登录
|
||||
public static final String LOGIN= PREFIX+"login";
|
||||
|
||||
//用户数据
|
||||
public static final String DATA_SECURITY= PREFIX+"data:security";
|
||||
|
||||
//建立用户与会话唯一标识之间的关系,用于判断剔除
|
||||
public static final String USER_TOKEN = PREFIX+"user-token:";
|
||||
|
||||
//建立会话唯一标识与jwtToken之间的关系,用于令牌续期
|
||||
public static final String JWT_TOKEN = PREFIX+"jwt-token:";
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.sick;
|
||||
|
||||
/**
|
||||
* SickConstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 疾病常量类
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class SickConstant {
|
||||
|
||||
public final static String SICK_TYPE = "DISEASE";
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.sms;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.constant.basic.CacheConstant;
|
||||
|
||||
/**
|
||||
* @ClassName DataDictCacheConstant.java
|
||||
* @Description 短信缓存常量
|
||||
*/
|
||||
public class SmsCacheConstant extends CacheConstant {
|
||||
|
||||
//缓存父包
|
||||
public static final String PREFIX= "sms-";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//blacklist缓存父包
|
||||
public static final String PREFIX_BLACKLIST= PREFIX+"blacklist";
|
||||
|
||||
//Channel缓存父包
|
||||
public static final String PREFIX_CHANNEL= PREFIX+"channel";
|
||||
|
||||
//发送记录缓存父包
|
||||
public static final String PREFIX_SEND_RECORD= PREFIX+"send_record";
|
||||
|
||||
//签名缓存父包
|
||||
public static final String PREFIX_SIGN= PREFIX+"sign";
|
||||
|
||||
//模板缓存父包
|
||||
public static final String PREFIX_TEMPLATE= PREFIX+"template";
|
||||
|
||||
//黑名单page分页
|
||||
public static final String PAGE_BLACKLIST= PREFIX_BLACKLIST+"page";
|
||||
|
||||
//channel的page分页
|
||||
public static final String PAGE_CHANNEL= PREFIX_CHANNEL+"page";
|
||||
|
||||
//channel的page分页
|
||||
public static final String CHANNEL_LABEL= PREFIX_CHANNEL+"label&ttl=-1";
|
||||
|
||||
//sign的page分页
|
||||
public static final String PAGE_SIGN= PREFIX_SIGN+"page";
|
||||
|
||||
//channel的page分页
|
||||
public static final String PAGE_SEND_RECORD = PREFIX_SEND_RECORD+"page";
|
||||
|
||||
//template的page分页
|
||||
public static final String PAGE_TEMPLATE = PREFIX_TEMPLATE+"page";
|
||||
|
||||
//Channel缓存list
|
||||
public static final String CHANNEL_LIST= PREFIX+"channel_list:";
|
||||
|
||||
//sign缓存list
|
||||
public static final String SIGN_LIST =PREFIX+"sign_list" ;
|
||||
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.sms;
|
||||
|
||||
/**
|
||||
* @ClassName SmsConstant.java
|
||||
* @Description 短信常量类
|
||||
*/
|
||||
public class SmsConstant {
|
||||
|
||||
//阿里云短信
|
||||
public static final String ALIYUN_SMS = "ALIYUN_SMS";
|
||||
//腾讯云短信
|
||||
public static final String TENCENT_SMS = "TENCENT_SMS";
|
||||
//百度云短信
|
||||
public static final String BAIDU_SMS = "BAIDU_SMS";
|
||||
|
||||
//邮件负载均衡
|
||||
public static final String HASH = "HASH";
|
||||
public static final String RANDOM = "RANDOM ";
|
||||
public static final String ROUND_ROBIN ="ROUND_ROBIN" ;
|
||||
public static final String WEIGHT_RANDOM = "WEIGHT_RANDOM";
|
||||
public static final String WEIGHT_ROUND_ROBIN = "WEIGHT_ROUND_ROBIN";
|
||||
|
||||
//发送状态:发送成功
|
||||
public static final String STATUS_SEND_0 ="0" ;
|
||||
//发送状态:发送失败
|
||||
public static final String STATUS_SEND_1 ="1" ;
|
||||
//发送状态:发送中
|
||||
public static final String STATUS_SEND_2 ="2" ;
|
||||
|
||||
//受理状态:受理成功
|
||||
public static final String STATUS_ACCEPT_0 ="0" ;
|
||||
//受理状态:受理失败
|
||||
public static final String STATUS_ACCEPT_1 ="1" ;
|
||||
//受理状态:受理中
|
||||
public static final String STATUS_ACCEPT_2 ="2" ;
|
||||
|
||||
//审核状态:审核成功
|
||||
public static final String STATUS_AUDIT_0 = "0";
|
||||
//审核状态:审核失败
|
||||
public static final String STATUS_AUDIT_1 = "1";
|
||||
//审核状态:审核中
|
||||
public static final String STATUS_AUDIT_2 = "2";
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.trade;
|
||||
|
||||
/**
|
||||
* @ClassName SignContractVonstant.java
|
||||
* @Description 签约合同常量类
|
||||
*/
|
||||
public class SignContractConstant {
|
||||
|
||||
//1. TEMP:暂存,协议未生效过;2. NORMAL:正常;3. STOP:暂停
|
||||
public static final String SIGNSTATE_TEMP ="1";
|
||||
public static final String SIGNSTATE_NORMAL ="2";
|
||||
public static final String SIGNSTATE_STOP ="3";
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.trade;
|
||||
|
||||
/**
|
||||
* @ClassName TradeCacheConstant.java
|
||||
* @Description 交易缓存维护
|
||||
*/
|
||||
public class TradeCacheConstant {
|
||||
|
||||
//默认redis等待时间
|
||||
public static final int REDIS_WAIT_TIME = 10;
|
||||
|
||||
//默认redis自动释放时间
|
||||
public static final int REDIS_LEASETIME = 4;
|
||||
|
||||
//安全组前缀
|
||||
public static final String PREFIX = "trade:";
|
||||
|
||||
//分布式锁前缀
|
||||
public static final String LOCK_PREFIX = PREFIX+"lock:";
|
||||
|
||||
//创建交易加锁
|
||||
public static final String CREATE_PAY = LOCK_PREFIX+ "create_pay";
|
||||
|
||||
//创建退款加锁
|
||||
public static final String REFUND_PAY = LOCK_PREFIX+ "refund_pay";
|
||||
|
||||
//创建退款加锁
|
||||
public static final String PAY_CHANNEL_VLID = PREFIX+"pay_channel_vlid&ttl=-1";
|
||||
|
||||
//page分页
|
||||
public static final String PAGE= PREFIX+"page";
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.trade;
|
||||
|
||||
/**
|
||||
* @ClassName TardingConstant.java
|
||||
* @Description 交易常量类
|
||||
*/
|
||||
public class TradeConstant {
|
||||
|
||||
//【阿里云退款返回状态】
|
||||
//REFUND_SUCCESS:成功
|
||||
public static final String REFUND_SUCCESS= "REFUND_SUCCESS";
|
||||
|
||||
//【阿里云返回付款状态】
|
||||
//TRADE_CLOSED:未付款交易超时关闭,或支付完成后全额退款
|
||||
public static final String ALI_TRADE_CLOSED ="TRADE_CLOSED";
|
||||
//TRADE_SUCCESS:交易支付成功
|
||||
public static final String ALI_TRADE_SUCCESS="TRADE_SUCCESS";
|
||||
//TRADE_FINISHED:交易结束不可退款
|
||||
public static final String ALI_TRADE_FINISHED ="TRADE_FINISHED";
|
||||
|
||||
//【支付宝状态定义】
|
||||
public static final String ALI_SUCCESS_CODE= "10000";
|
||||
public static final String ALI_SUCCESS_MSG= "Success";
|
||||
|
||||
//【微信退款返回状态】
|
||||
//SUCCESS:退款成功
|
||||
public static final String WECHAT_REFUND_SUCCESS ="SUCCESS";
|
||||
//CLOSED:退款关闭
|
||||
public static final String WECHAT_REFUND_CLOSED="CLOSED";
|
||||
//PROCESSING:退款处理中
|
||||
public static final String WECHAT_REFUND_PROCESSING ="PROCESSING";
|
||||
//ABNORMAL:退款异常
|
||||
public static final String WECHAT_REFUND_ABNORMAL ="ABNORMAL";
|
||||
|
||||
//【微信返回付款状态】
|
||||
//SUCCESS:支付成功
|
||||
public static final String WECHAT_TRADE_SUCCESS ="SUCCESS";
|
||||
//REFUND:转入退款
|
||||
public static final String WECHAT_TRADE_REFUND ="REFUND";
|
||||
//NOTPAY:未支付
|
||||
public static final String WECHAT_TRADE_NOTPAY ="NOTPAY";
|
||||
//CLOSED:已关闭
|
||||
public static final String WECHAT_TRADE_CLOSED ="CLOSED";
|
||||
//REVOKED:已撤销(仅付款码支付会返回)
|
||||
public static final String WECHAT_TRADE_REVOKED ="REVOKED";
|
||||
//USERPAYING:用户支付中(仅付款码支付会返回)
|
||||
public static final String WECHAT_TRADE_USERPAYING ="USERPAYING";
|
||||
//PAYERROR:支付失败(仅付款码支付会返回)
|
||||
public static final String WECHAT_TRADE_WAITERROR ="PAYERROR";
|
||||
|
||||
//【平台:交易渠道】
|
||||
//阿里
|
||||
public static final String TRADE_CHANNEL_ALI_PAY = "ALI_PAY";
|
||||
//微信
|
||||
public static final String TRADE_CHANNEL_WECHAT_PAY = "WECHAT_PAY";
|
||||
//现金
|
||||
public static final String TRADE_CHANNEL_CASH_PAY = "CASH_PAY";
|
||||
//免单
|
||||
public static final String TRADE_CHANNEL_CREDIT_PAY = "CREDIT_PAY";
|
||||
|
||||
|
||||
//【平台:交易状态】
|
||||
//WAIT:待支付(交易创建,等待买家付款)
|
||||
public static final String TRADE_WAIT ="0";
|
||||
//SUCCESS:支付成功
|
||||
public static final String TRADE_SUCCESS ="1";
|
||||
//CLOSED:已关闭(未付款交易超时关闭,或支付失败)
|
||||
public static final String TRADE_CLOSED ="2";
|
||||
//TO_BE_SIGNED:待签约
|
||||
public static final String TRADE_TO_BE_SIGNED ="3";
|
||||
|
||||
//【平台:退款状态】
|
||||
//失败
|
||||
public static final String REFUND_STATUS_FAIL= "FAIL";
|
||||
//成功
|
||||
public static final String REFUND_STATUS_SUCCESS = "SUCCESS";
|
||||
//请求中
|
||||
public static final String REFUND_STATUS_SENDING= "SENDING";
|
||||
//请求关闭
|
||||
public static final String REFUND_STATUS_CLOSED= "CLOSED";
|
||||
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.warranty;
|
||||
|
||||
/**
|
||||
* WarrantyConstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 保险常量
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class WarrantyConstant {
|
||||
|
||||
//0待付款
|
||||
public final static String STATE_NOT_PAY = "0";
|
||||
//1待生效
|
||||
public final static String STATE_TO_BE_WORK = "1";
|
||||
//2保障中
|
||||
public final static String STATE_SAFEING= "2";
|
||||
//3 逾期中止
|
||||
public final static String STATE_OVERDUE_OVER = "3";
|
||||
//4 理赔终止
|
||||
public final static String STATE_SETTLEMENT_OVER = "4";
|
||||
//5 复效中止
|
||||
public final static String STATE_REINSTATE_ING_OVER = "5";
|
||||
//6 复效终止
|
||||
public final static String STATE_REINSTATE_OVER = "6";
|
||||
//7 满期终止
|
||||
public final static String STATE_EXPIRE_OVER = "7";
|
||||
//8 拒保
|
||||
public final static String STATE_DECLINATURE = "8";
|
||||
//9 犹豫期退保
|
||||
public final static String STATE_MISS_REFUND = "9";
|
||||
//10 协议退保
|
||||
public final static String STATE_ARGEE_REFUND = "10";
|
||||
|
||||
//核保状态(0发送失败 1核保中 2核保失败 3核保成功 )
|
||||
public final static String UNDERWRITING_STATE_0="0";
|
||||
public final static String UNDERWRITING_STATE_1="1";
|
||||
public final static String UNDERWRITING_STATE_2="2";
|
||||
public final static String UNDERWRITING_STATE_3="3";
|
||||
|
||||
//批保状态(0未批保 1批保发送失败 2批保中 3批保通过 4.保批不通过)
|
||||
public final static String APPROVE_STATE_UN_SEND="0";
|
||||
public final static String APPROVE_STATE_SEND_ERROR="1";
|
||||
public final static String APPROVE_STATE_APPROVEING="2";
|
||||
public final static String APPROVE_STATE_APPROVE="3";
|
||||
public final static String APPROVE_STATE_REFUSE="4";
|
||||
|
||||
public final static String APPROVE_TYPE_APPOVE="0";
|
||||
|
||||
public final static String APPROVE_TYPE_INSURERD="1";
|
||||
|
||||
/**
|
||||
* 判断是否是被保人
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public static boolean isInsured(String type) {
|
||||
return APPROVE_TYPE_INSURERD.equals(type);
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.warranty;
|
||||
|
||||
/**
|
||||
* WarrantyConstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 保险订单常量
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class WarrantyOrderConstant {
|
||||
|
||||
//状态(0待付款 1已付款 2逾期 3补缴 4付款失败 5付款中)
|
||||
public final static String ORDER_STATE_0="0";
|
||||
public final static String ORDER_STATE_1="1";
|
||||
public final static String ORDER_STATE_2="2";
|
||||
public final static String ORDER_STATE_3="3";
|
||||
public final static String ORDER_STATE_4="4";
|
||||
public final static String ORDER_STATE_5="5";
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.worryfree;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* ProductType
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 省心配产品匹配DTO对象
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class ProductTypeDTO {
|
||||
|
||||
//分类编号
|
||||
private String categoryNo;
|
||||
|
||||
//分类键
|
||||
private String categoryKey;
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
package com.itheima.sfbx.framework.commons.constant.worryfree;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* WorryFreeConstant
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 省心配常量
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
public class WorryFreeConstant {
|
||||
|
||||
//省心配风险redis中的key
|
||||
public static final String WORRYFREE_PREFIX = "worryfree:";
|
||||
|
||||
public static final String FLOW_NAME_RISK_START = "风险分析开始";
|
||||
|
||||
public static final String FLOW_NAME_RISK_END = "风险分析结束";
|
||||
|
||||
public static final String FLOW_NAME_SAFEGUARD_ANALYSIS_START = "保障评估开始";
|
||||
public static final String FLOW_NAME_SAFEGUARD_ANALYSIS_END = "保障评估结束";
|
||||
|
||||
public static final String FLOW_NAME_PRODUCT_MATCH_START = "产品匹配开始";
|
||||
|
||||
public static final String FLOW_NAME_PRODUCT_MATCH_ING = "产品匹配";
|
||||
public static final String FLOW_NAME_PRODUCT_MATCH_END = "产品匹配结束";
|
||||
|
||||
/**
|
||||
* 风险项医疗
|
||||
*/
|
||||
public static final String RISK_TYPE_MEDICAL = "medical";
|
||||
|
||||
/**
|
||||
* 风险项意外
|
||||
*/
|
||||
public static final String RISK_TYPE_ACCIDENT = "accident";
|
||||
|
||||
/**
|
||||
* 风险项身故
|
||||
*/
|
||||
public static final String RISK_TYPE_DIE = "die";
|
||||
|
||||
/**
|
||||
* 用户标签
|
||||
*/
|
||||
public static final String USER_TAG = "userTag";
|
||||
|
||||
/**
|
||||
* 风险项重疾
|
||||
*/
|
||||
public static final String RISK_TYPE_SERIOUS = "serious";
|
||||
|
||||
|
||||
/**
|
||||
* 风险项类型
|
||||
*/
|
||||
public static final String VARIABLE_KEY_SAFEGUARD = "safeguardList";
|
||||
|
||||
/**
|
||||
* 医疗变量键
|
||||
*/
|
||||
public static final String VARIABLE_KEY_MEDICAL_AMOUNT = "medicalAmount";
|
||||
|
||||
/**
|
||||
* 意外变量键
|
||||
*/
|
||||
public static final String VARIABLE_KEY_ACCIDENT_AMOUNT = "accidentAmount";
|
||||
|
||||
/**
|
||||
* 身故变量键
|
||||
*/
|
||||
public static final String VARIABLE_KEY_DIE_AMOUNT = "dieAmount";
|
||||
|
||||
/**
|
||||
* 重疾变量键
|
||||
*/
|
||||
public static final String VARIABLE_KEY_SERIOUS_AMOUNT = "seriousAmount";
|
||||
|
||||
/**
|
||||
* 医疗分类编号
|
||||
*/
|
||||
public static final String CATEGORY_NO_MEDICAL = "100001001000000";
|
||||
|
||||
|
||||
/**
|
||||
* 重疾分类编号
|
||||
*/
|
||||
public static final String CATEGORY_NO_SERIOUS = "100001002000000";
|
||||
|
||||
/**
|
||||
* 意外分类编号
|
||||
*/
|
||||
public static final String CATEGORY_NO_ACCIDENT = "100001003000000";
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取所有的风险项类型
|
||||
* @return
|
||||
*/
|
||||
public static List<String> getAllRiskTypeList() {
|
||||
List<String> nodeNameList = Arrays.asList(RISK_TYPE_MEDICAL, RISK_TYPE_ACCIDENT, RISK_TYPE_DIE, RISK_TYPE_SERIOUS);
|
||||
return nodeNameList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 风险分析流程
|
||||
* @return
|
||||
*/
|
||||
public static List<String> getRiskFlowList() {
|
||||
List<String> nodeNameList = Arrays.asList("风险分析流程开始", "用户数据构建", "三方数据调用", "风险分析计算中", "准入分析", "反欺诈分析", "风险导入","风险打分");
|
||||
return nodeNameList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保障配额流程节点
|
||||
* @return
|
||||
*/
|
||||
public static List<String> getSafeguardFlowList() {
|
||||
List<String> nodeNameList = Arrays.asList("评估保障开始", "保障项数据获取", "三方数据调用", "评估保障计算中", "个人收入项验证", "收入反欺诈分析", "评估保障结束");
|
||||
return nodeNameList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 产品匹配节点列表
|
||||
* @return
|
||||
*/
|
||||
public static List<String> getProductMatchFlowList() {
|
||||
List<String> nodeNameList = Arrays.asList("产品匹配开始","系统保险数据获取", "保险计算", "保额计算", "保额数据获取", "保额最大努力匹配", "保险匹配");
|
||||
return nodeNameList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 产品匹配节点列表
|
||||
* @return
|
||||
*/
|
||||
public static List<ProductTypeDTO> getProductTypeCategoryList() {
|
||||
List<ProductTypeDTO> nodeNameList = Arrays.asList(
|
||||
ProductTypeDTO.builder().categoryNo(CATEGORY_NO_MEDICAL).categoryKey(VARIABLE_KEY_MEDICAL_AMOUNT).build(),
|
||||
ProductTypeDTO.builder().categoryNo(CATEGORY_NO_SERIOUS).categoryKey(VARIABLE_KEY_SERIOUS_AMOUNT).build(),
|
||||
ProductTypeDTO.builder().categoryNo(CATEGORY_NO_ACCIDENT).categoryKey(VARIABLE_KEY_ACCIDENT_AMOUNT).build()
|
||||
);
|
||||
return nodeNameList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取锁key
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public static String getLockKey(String id) {
|
||||
//省心配风险redis中的key
|
||||
return WORRYFREE_PREFIX + "worryfree:key:"+id;
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.analysis;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* AnalysisCustomerInsuranceDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 统计每日客户保险数量数据传输对象
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class AnalysisCustomerInsuranceDTO {
|
||||
|
||||
@ApiModelProperty(value = "当日总保费")
|
||||
private Long money;
|
||||
|
||||
@ApiModelProperty(value = "当日保单数")
|
||||
private Long insuranceNums;
|
||||
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.analysis;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* AnalysisCustomerSexDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 统计分析客户性别统计
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class AnalysisCustomerSexDTO {
|
||||
|
||||
@ApiModelProperty(value = "保单男性数量")
|
||||
private Integer sexManNums;
|
||||
|
||||
@ApiModelProperty(value = "保单女性数量")
|
||||
private Integer sexWomanNums;
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.analysis;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* AnalysisCustomerSexDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 统计分析投保分类统计分析
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class AnalysisInsuranceTypeDTO {
|
||||
|
||||
@ApiModelProperty(value = "投保分类ID")
|
||||
private Integer insuranceTypeId;
|
||||
|
||||
@ApiModelProperty(value = "投保分类名")
|
||||
private String insuranceTypeName;
|
||||
|
||||
@ApiModelProperty(value = "对应分类的投保数量")
|
||||
private Integer insuranceNums;
|
||||
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.analysis;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName InsureCategoryDTO.java
|
||||
* @Description 投保分类报表DTO
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@ApiModel(value="InsureCategoryDTO对象", description="投保分类报表DTO")
|
||||
public class InsureCategoryDTO {
|
||||
|
||||
@Builder
|
||||
public InsureCategoryDTO(String categoryName, Long doInsureNums, LocalDate reportTime) {
|
||||
this.categoryName = categoryName;
|
||||
this.doInsureNums = doInsureNums;
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "保险分类名称")
|
||||
private String categoryName;
|
||||
|
||||
@ApiModelProperty(value = "投保次数")
|
||||
private Long doInsureNums;
|
||||
|
||||
@ApiModelProperty(value = "统计时间")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
@JsonSerialize(using = LocalDateSerializer.class)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate reportTime;
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.analysis;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* PageDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 分页对象
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class PageDTO {
|
||||
|
||||
private Integer pageNum;
|
||||
|
||||
private Integer pageSize = 5000;
|
||||
|
||||
private Integer totalPageNum;
|
||||
|
||||
private Integer totalCount;
|
||||
|
||||
public PageDTO(Integer totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
this.totalPageNum = (int) Math.ceil((double) totalCount / pageSize);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取分页信息
|
||||
*
|
||||
* @param totalData
|
||||
* @return
|
||||
*/
|
||||
public static PageDTO getPageInfo(Map totalData) {
|
||||
Integer count = Double.valueOf(totalData.get("count").toString()).intValue();
|
||||
PageDTO pageDTO = new PageDTO(count);
|
||||
return pageDTO;
|
||||
}
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.analysis;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName SaleReportDTO.java
|
||||
* @Description 销售报表DTO
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@ApiModel(value="SaleReportDTO对象", description="销售报表DTO")
|
||||
public class SaleReportDTO implements Serializable {
|
||||
|
||||
@Builder
|
||||
public SaleReportDTO(BigDecimal totalAmountDay, BigDecimal avgPieceAmountDay, Long persons,
|
||||
BigDecimal avgPersonAmountDay, Long totalWarrantyDay, LocalDate reportTime) {
|
||||
this.totalAmountDay = totalAmountDay;
|
||||
this.avgPieceAmountDay = avgPieceAmountDay;
|
||||
this.avgPersonAmountDay = avgPersonAmountDay;
|
||||
this.totalWarrantyDay = totalWarrantyDay;
|
||||
this.persons = persons;
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "日投保总额度")
|
||||
private BigDecimal totalAmountDay;
|
||||
|
||||
@ApiModelProperty(value = "日投保件均额度")
|
||||
private BigDecimal avgPieceAmountDay;
|
||||
|
||||
@ApiModelProperty(value = "日投保人均额度")
|
||||
private BigDecimal avgPersonAmountDay;
|
||||
|
||||
@ApiModelProperty(value = "日总合同数")
|
||||
private Long totalWarrantyDay;
|
||||
|
||||
@ApiModelProperty(value = "投保人数")
|
||||
private Long persons;
|
||||
|
||||
@ApiModelProperty(value = "统计时间")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
@JsonSerialize(using = LocalDateSerializer.class)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate reportTime;
|
||||
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.analysis;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
/**
|
||||
* TimeDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 日期对象类
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class TimeDTO {
|
||||
|
||||
|
||||
/**
|
||||
* 目标日期:LocalDate
|
||||
*/
|
||||
private LocalDate targetDate;
|
||||
|
||||
/**
|
||||
* 目标日期:LocalDateTime
|
||||
*/
|
||||
private LocalDateTime targetDateTime;
|
||||
|
||||
/**
|
||||
* 目标日期开始 字符串
|
||||
*/
|
||||
private String begin;
|
||||
|
||||
/**
|
||||
* 目标日期结束时间 字符串
|
||||
*/
|
||||
private String end;
|
||||
|
||||
/**
|
||||
* 目标日期开始时间
|
||||
*/
|
||||
private LocalDateTime beginTime;
|
||||
|
||||
/**
|
||||
* 目标日期结束时间
|
||||
*/
|
||||
private LocalDateTime endTime;
|
||||
|
||||
|
||||
/**
|
||||
* 获取日志格式化
|
||||
* @return
|
||||
*/
|
||||
public DateTimeFormatter getTimeFormatter(){
|
||||
return DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.basic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @ClassName BaseVo.java
|
||||
* @Description 基础请求
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class BaseVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
||||
@JsonSerialize(using = LocalDateTimeSerializer.class)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//set
|
||||
protected LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
||||
@JsonSerialize(using = LocalDateTimeSerializer.class)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//set
|
||||
protected LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "创建者:username")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long createBy;
|
||||
|
||||
@ApiModelProperty(value = "更新者:username")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long updateBy;
|
||||
|
||||
@ApiModelProperty(value = "是否有效")
|
||||
protected String dataState;
|
||||
|
||||
@ApiModelProperty(value = "创建人名称")
|
||||
private String creator;
|
||||
|
||||
public BaseVO(Long id, String dataState) {
|
||||
this.id = id;
|
||||
this.dataState = dataState;
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.basic;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName OtherConfig.java
|
||||
* @Description 扩展配置
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@ApiModel(value="OtherConfigVO对象", description="扩展配置")
|
||||
public class OtherConfigVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public OtherConfigVO(String configKey, String configValue) {
|
||||
this.configKey = configKey;
|
||||
this.configValue = configValue;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "配置键")
|
||||
private String configKey;
|
||||
|
||||
@ApiModelProperty(value = "配置值")
|
||||
private String configValue;
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.basic;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:树结构体
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class TreeItemVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "节点ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
public String id;
|
||||
|
||||
@ApiModelProperty(value = "节点父亲ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
public String parentId;
|
||||
|
||||
@ApiModelProperty(value = "显示内容")
|
||||
public String label;
|
||||
|
||||
@ApiModelProperty(value = "是否选择")
|
||||
public Boolean isChecked;
|
||||
|
||||
@ApiModelProperty(value = "显示内容")
|
||||
public String systemCode;
|
||||
|
||||
@ApiModelProperty(value = "是否叶子节点")
|
||||
public String isLeaf;
|
||||
|
||||
@ApiModelProperty(value = "显示内容")
|
||||
public List<TreeItemVO> children;
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.basic;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 树显示类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class TreeVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "tree数据")
|
||||
private List<TreeItemVO> items;
|
||||
|
||||
@ApiModelProperty(value = "选择节点")
|
||||
private List<String> checkedIds;
|
||||
|
||||
@ApiModelProperty(value = "展开项")
|
||||
private List<String> expandedIds;
|
||||
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.click;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* ClickDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 点击对象
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class ClickDTO {
|
||||
|
||||
@ApiModelProperty(value = "请求id")
|
||||
private String requestId;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
private String host;
|
||||
|
||||
@ApiModelProperty(value = "ip地址")
|
||||
private String hostAddress;
|
||||
|
||||
@ApiModelProperty(value = "请求路径")
|
||||
private String requestUri;
|
||||
|
||||
@ApiModelProperty(value = "请求方式")
|
||||
private String requestMethod;
|
||||
|
||||
@ApiModelProperty(value = "请求body")
|
||||
private String requesBody;
|
||||
|
||||
@ApiModelProperty(value = "应答body")
|
||||
private String responseBody;
|
||||
|
||||
@ApiModelProperty(value = "应答code")
|
||||
private String responseCode;
|
||||
|
||||
@ApiModelProperty(value = "应答msg")
|
||||
private String responseMsg;
|
||||
|
||||
@ApiModelProperty(value = "用户")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名称")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty(value = "设备号")
|
||||
private String deviceNumber;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNO;
|
||||
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.dict;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:数据字典表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DataDictVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public DataDictVO(Long id, String dataState, String parentKey,
|
||||
String dataKey, String dataValue, String discription) {
|
||||
super(id, dataState);
|
||||
this.parentKey = parentKey;
|
||||
this.dataKey = dataKey;
|
||||
this.dataValue = dataValue;
|
||||
this.discription = discription;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "父key")
|
||||
private String parentKey;
|
||||
|
||||
@ApiModelProperty(value = "数据字典KEY")
|
||||
private String dataKey;
|
||||
|
||||
@ApiModelProperty(value = "值")
|
||||
private String dataValue;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String discription;
|
||||
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.dict;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:地方表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class PlacesVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public PlacesVO(Long id, String dataState, Long parentId, String cityName) {
|
||||
super(id, dataState);
|
||||
this.parentId = parentId;
|
||||
this.cityName = cityName;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "父ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long parentId;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String cityName;
|
||||
|
||||
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.external;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* TripartiteInsureDTO
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 投保交互DTO
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@Data
|
||||
public class TripartiteInsureDTO {
|
||||
|
||||
/**
|
||||
* 图片浏览地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 允许投保标志位
|
||||
*/
|
||||
private Boolean flag;
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.file;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class FilePartVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public FilePartVO(Long id, String dataState, String uploadId, Integer partNumber, Long partSize, String uploadResult, String md5, String bucketName, String fileName, String storeFlag, String companyNo) {
|
||||
super(id, dataState);
|
||||
this.uploadId = uploadId;
|
||||
this.partNumber = partNumber;
|
||||
this.partSize = partSize;
|
||||
this.uploadResult = uploadResult;
|
||||
this.md5 = md5;
|
||||
this.bucketName = bucketName;
|
||||
this.fileName = fileName;
|
||||
this.storeFlag = storeFlag;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "唯一上传id")
|
||||
private String uploadId;
|
||||
|
||||
@ApiModelProperty(value = "当前片数")
|
||||
private Integer partNumber;
|
||||
|
||||
@ApiModelProperty(value = "分片大小")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long partSize;
|
||||
|
||||
@ApiModelProperty(value = "分片上传结果(json)")
|
||||
private String uploadResult;
|
||||
|
||||
@ApiModelProperty(value = "md5值")
|
||||
private String md5;
|
||||
|
||||
@ApiModelProperty(value = "存储空间名称")
|
||||
private String bucketName;
|
||||
|
||||
@ApiModelProperty(value = "文件名")
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty(value = "存储源标识,参考FileConstant")
|
||||
private String storeFlag;
|
||||
|
||||
@ApiModelProperty(value = "企业号")
|
||||
private String companyNo;
|
||||
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.file;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.constant.file.FileConstant;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:附件表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class FileVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public FileVO(Long id, String dataState, Long businessId, String businessType, String suffix, String fileName, String pathUrl, String storeFlag, String bucketName, String base64Image, String uploadId, Boolean autoCatalog, String md5, List<String> partETags, String status, String companyNo) {
|
||||
super(id, dataState);
|
||||
this.businessId = businessId;
|
||||
this.businessType = businessType;
|
||||
this.suffix = suffix;
|
||||
this.fileName = fileName;
|
||||
this.pathUrl = pathUrl;
|
||||
this.storeFlag = storeFlag;
|
||||
this.bucketName = bucketName;
|
||||
this.base64Image = base64Image;
|
||||
this.uploadId = uploadId;
|
||||
this.autoCatalog = autoCatalog;
|
||||
this.md5 = md5;
|
||||
this.partETags = partETags;
|
||||
this.status = status;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "业务ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long businessId;
|
||||
|
||||
@ApiModelProperty(value = "业务类型")
|
||||
private String businessType;
|
||||
|
||||
@ApiModelProperty(value = "后缀名")
|
||||
private String suffix;
|
||||
|
||||
@ApiModelProperty(value = "文件名")
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty(value = "访问路径")
|
||||
private String pathUrl;
|
||||
|
||||
@ApiModelProperty(value = "存储标识(不同的存储标识参考FileConstant),现支持 aliyunoss、qiniu ")
|
||||
private String storeFlag;
|
||||
|
||||
@ApiModelProperty(value = "存储空间名称")
|
||||
private String bucketName;
|
||||
|
||||
@ApiModelProperty(value = "base64图片")
|
||||
private String base64Image;
|
||||
|
||||
@ApiModelProperty(value = "分片上传文件Id")
|
||||
private String uploadId;
|
||||
|
||||
@ApiModelProperty(value = "是否自动生成文件存储目录,如果在storeFilename指定了目录,此值设置为false")
|
||||
private Boolean autoCatalog;
|
||||
|
||||
@ApiModelProperty(value = "md5值")
|
||||
private String md5;
|
||||
|
||||
@ApiModelProperty(value = "分片上传分片信息")
|
||||
private List<String> partETags;
|
||||
|
||||
@ApiModelProperty(value = "上传状态")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "企业号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "历史上传:0 历史有此文件 1、历史无此文件")
|
||||
private String isHistory;
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.file;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class UploadMultipartFile implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "文件名称")
|
||||
public String originalFilename;
|
||||
|
||||
@ApiModelProperty(value = "文件数组")
|
||||
public byte[] fileByte;
|
||||
|
||||
}
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.log;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:日志模块
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class LogBusinessVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public LogBusinessVO(Long id, String dataState, String requestId, String host, String hostAddress, String requestUri, String requestMethod, String requestBody, String responseBody, int responseCode, String responseMsg, Long userId, String userName, String businessType, String deviceNumber, List<String> createdTimeQuerty, String companyNO,String sex,String lastReadUrl,String province,String city) {
|
||||
super(id, dataState);
|
||||
this.requestId = requestId;
|
||||
this.host = host;
|
||||
this.hostAddress = hostAddress;
|
||||
this.requestUri = requestUri;
|
||||
this.requestMethod = requestMethod;
|
||||
this.requestBody = requestBody;
|
||||
this.responseBody = responseBody;
|
||||
this.responseCode = responseCode;
|
||||
this.responseMsg = responseMsg;
|
||||
this.userId = userId;
|
||||
this.userName = userName;
|
||||
this.businessType = businessType;
|
||||
this.deviceNumber = deviceNumber;
|
||||
this.createdTimeQuerty = createdTimeQuerty;
|
||||
this.companyNO = companyNO;
|
||||
this.sex = sex;
|
||||
this.lastReadUrl = lastReadUrl;
|
||||
this.province = province;
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "请求id")
|
||||
private String requestId;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
private String host;
|
||||
|
||||
@ApiModelProperty(value = "ip地址")
|
||||
private String hostAddress;
|
||||
|
||||
@ApiModelProperty(value = "请求路径")
|
||||
private String requestUri;
|
||||
|
||||
@ApiModelProperty(value = "请求方式")
|
||||
private String requestMethod;
|
||||
|
||||
@ApiModelProperty(value = "请求body")
|
||||
private String requestBody;
|
||||
|
||||
@ApiModelProperty(value = "应答body")
|
||||
private String responseBody;
|
||||
|
||||
@ApiModelProperty(value = "应答code")
|
||||
private int responseCode;
|
||||
|
||||
@ApiModelProperty(value = "应答msg")
|
||||
private String responseMsg;
|
||||
|
||||
@ApiModelProperty(value = "用户")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "用户名称")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty(value = "业务类型")
|
||||
private String businessType;
|
||||
|
||||
@ApiModelProperty(value = "设备号")
|
||||
private String deviceNumber;
|
||||
|
||||
@ApiModelProperty(value = "时间查询")
|
||||
private List<String> createdTimeQuerty;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNO;
|
||||
|
||||
@ApiModelProperty(value = "性别")
|
||||
private String sex;
|
||||
|
||||
@ApiModelProperty(value = "上次浏览页面")
|
||||
private String lastReadUrl;
|
||||
|
||||
@ApiModelProperty(value = "省份")
|
||||
private String province;
|
||||
|
||||
@ApiModelProperty(value = "城市")
|
||||
private String city;
|
||||
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.report;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:保险分类
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value="CategoryReportVO对象", description="保险分类报表对象")
|
||||
public class CategoryReportVO extends BaseVO {
|
||||
|
||||
|
||||
@Builder
|
||||
public CategoryReportVO(Long id, String dataState, String parentCategoryNo, String categoryNo, String categoryName, String icon, String leafNode, String showIndex, String categoryType, Integer sortNo, String remake, String checkRule, String[] checkedIds, String[] checkedCategoryNos, List<Long> nodeFloors) {
|
||||
super(id, dataState);
|
||||
this.parentCategoryNo = parentCategoryNo;
|
||||
this.categoryNo = categoryNo;
|
||||
this.categoryName = categoryName;
|
||||
this.icon = icon;
|
||||
this.leafNode = leafNode;
|
||||
this.showIndex = showIndex;
|
||||
this.categoryType = categoryType;
|
||||
this.sortNo = sortNo;
|
||||
this.remake = remake;
|
||||
this.checkRule = checkRule;
|
||||
this.checkedIds = checkedIds;
|
||||
this.checkedCategoryNos = checkedCategoryNos;
|
||||
this.nodeFloors = nodeFloors;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "父分类编号")
|
||||
private String parentCategoryNo;
|
||||
|
||||
@ApiModelProperty(value = "分类编号")
|
||||
private String categoryNo;
|
||||
|
||||
@ApiModelProperty(value = "分类名称")
|
||||
private String categoryName;
|
||||
|
||||
@ApiModelProperty(value = "图标")
|
||||
private String icon;
|
||||
|
||||
@ApiModelProperty(value = "是否叶子节点(0是 否1)")
|
||||
private String leafNode;
|
||||
|
||||
@ApiModelProperty(value = "是否显示在首页(0是 否1)")
|
||||
private String showIndex;
|
||||
|
||||
@ApiModelProperty(value = "分类类型:0推荐分类 1产品分类 ")
|
||||
private String categoryType;
|
||||
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer sortNo;
|
||||
|
||||
@ApiModelProperty(value = "分类补充说明")
|
||||
private String remake;
|
||||
|
||||
@ApiModelProperty(value = "校验规则:0医疗 1重疾 2意外 3养老 4储蓄 5旅游 6宠物 7定寿")
|
||||
private String checkRule;
|
||||
|
||||
@ApiModelProperty(value = "批量操作:主键ID")
|
||||
private String[] checkedIds;
|
||||
|
||||
@ApiModelProperty(value = "TREE结构:选中分类编号")
|
||||
private String[] checkedCategoryNos;
|
||||
|
||||
@ApiModelProperty(value = "节点层级:最多5层")
|
||||
private List<Long> nodeFloors;
|
||||
}
|
||||
+181
@@ -0,0 +1,181 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.report;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.file.FileVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.security.CompanyVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:保险产品
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "InsuranceReportVO对象", description = "保险产品报表VO")
|
||||
public class InsuranceReportVO extends BaseVO {
|
||||
|
||||
@Builder
|
||||
public InsuranceReportVO(Long id, String dataState, String publishNumber, Long categoryNo,String categoryName, Long recommendCategoryNo, String insuranceName, String goldSelection, String carefree, String showIndex, String labelsJson, String remakeJson, Long timeStart, String timeStartUnit, Long timeEnd, String timeEndUnit, String relation, Integer sortNo, String multiple, Long continuousInsuranceAge, String checkRule, String companyNo, String insuranceState, Integer grace, String graceUnit, Integer revival, String revivalUnit, String comment, String remake, Integer hesitation, Integer waits, List<FileVO> fileVOs, String[] checkedIds, BigDecimal operatingRate, BigDecimal individualAgentRate, BigDecimal platformAgentRate, CompanyVO companyVO, List<String> conditionVals) {
|
||||
super(id, dataState);
|
||||
this.publishNumber = publishNumber;
|
||||
this.categoryNo = categoryNo;
|
||||
this.categoryName = categoryName;
|
||||
this.recommendCategoryNo = recommendCategoryNo;
|
||||
this.insuranceName = insuranceName;
|
||||
this.goldSelection = goldSelection;
|
||||
this.carefree = carefree;
|
||||
this.showIndex = showIndex;
|
||||
this.labelsJson = labelsJson;
|
||||
this.remakeJson = remakeJson;
|
||||
this.timeStart = timeStart;
|
||||
this.timeStartUnit = timeStartUnit;
|
||||
this.timeEnd = timeEnd;
|
||||
this.timeEndUnit = timeEndUnit;
|
||||
this.relation = relation;
|
||||
this.sortNo = sortNo;
|
||||
this.multiple = multiple;
|
||||
this.continuousInsuranceAge = continuousInsuranceAge;
|
||||
this.checkRule = checkRule;
|
||||
this.companyNo = companyNo;
|
||||
this.insuranceState = insuranceState;
|
||||
this.grace = grace;
|
||||
this.graceUnit = graceUnit;
|
||||
this.revival = revival;
|
||||
this.revivalUnit = revivalUnit;
|
||||
this.comment = comment;
|
||||
this.remake = remake;
|
||||
this.hesitation = hesitation;
|
||||
this.waits = waits;
|
||||
this.fileVOs = fileVOs;
|
||||
this.checkedIds = checkedIds;
|
||||
this.operatingRate = operatingRate;
|
||||
this.individualAgentRate = individualAgentRate;
|
||||
this.platformAgentRate = platformAgentRate;
|
||||
this.companyVO = companyVO;
|
||||
this.conditionVals = conditionVals;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "银保监备案号")
|
||||
private String publishNumber;
|
||||
|
||||
@ApiModelProperty(value = "分类编号")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long categoryNo;
|
||||
|
||||
@ApiModelProperty(value = "分类名称")
|
||||
private String categoryName;
|
||||
|
||||
@ApiModelProperty(value = "推荐分类")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long recommendCategoryNo;
|
||||
|
||||
@ApiModelProperty(value = "保险名称")
|
||||
private String insuranceName;
|
||||
|
||||
@ApiModelProperty(value = "金选:0是 1否")
|
||||
private String goldSelection;
|
||||
|
||||
@ApiModelProperty(value = "安心赔:0是 1否")
|
||||
private String carefree;
|
||||
|
||||
@ApiModelProperty(value = "首页热点显示(是0 否1)")
|
||||
private String showIndex;
|
||||
|
||||
@ApiModelProperty(value = "保险标签格式:[{key:200万医疗金,val:指定私立意义}]")
|
||||
private String labelsJson;
|
||||
|
||||
@ApiModelProperty(value = "补充说明格式[{key:失去保障,val:断保将失去相应保障,不能理赔}]")
|
||||
private String remakeJson;
|
||||
|
||||
@ApiModelProperty(value = "可购买起始点")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long timeStart;
|
||||
|
||||
@ApiModelProperty(value = "可购买起始点单位:天、年")
|
||||
private String timeStartUnit;
|
||||
|
||||
@ApiModelProperty(value = "可购买结束点")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long timeEnd;
|
||||
|
||||
@ApiModelProperty(value = "可购买结束点单位:天、年")
|
||||
private String timeEndUnit;
|
||||
|
||||
@ApiModelProperty(value = "可投保关系:self,children:spouse,parents")
|
||||
private String relation;
|
||||
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer sortNo;
|
||||
|
||||
@ApiModelProperty(value = "团个险(0团 1个)")
|
||||
private String multiple;
|
||||
|
||||
@ApiModelProperty(value = "连续投保年龄")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long continuousInsuranceAge;
|
||||
|
||||
@ApiModelProperty(value = "校验规则:0医疗 1重疾 2意外 3养老 4年金 5旅游 6宠物 7定寿")
|
||||
private String checkRule;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "保险状态(上架0 下架1)")
|
||||
private String insuranceState;
|
||||
|
||||
@ApiModelProperty(value = "保单宽限")
|
||||
private Integer grace;
|
||||
|
||||
@ApiModelProperty(value = "宽限单位")
|
||||
private String graceUnit;
|
||||
|
||||
@ApiModelProperty(value = "保单复效")
|
||||
private Integer revival;
|
||||
|
||||
@ApiModelProperty(value = "复效单位")
|
||||
private String revivalUnit;
|
||||
|
||||
@ApiModelProperty(value = "产品点评")
|
||||
private String comment;
|
||||
|
||||
@ApiModelProperty(value = "产品描述")
|
||||
private String remake;
|
||||
|
||||
@ApiModelProperty(value = "犹豫期")
|
||||
private Integer hesitation;
|
||||
|
||||
@ApiModelProperty(value = "等待期")
|
||||
private Integer waits;
|
||||
|
||||
@ApiModelProperty(value = "文件VO对象")
|
||||
private List<FileVO> fileVOs;
|
||||
|
||||
@ApiModelProperty(value = "批量操作:主键ID")
|
||||
private String[] checkedIds;
|
||||
|
||||
@ApiModelProperty(value = "运营费率")
|
||||
private BigDecimal operatingRate;
|
||||
|
||||
@ApiModelProperty(value = "个人代理费率")
|
||||
private BigDecimal individualAgentRate;
|
||||
|
||||
@ApiModelProperty(value = "平台代理费率")
|
||||
private BigDecimal platformAgentRate;
|
||||
|
||||
@ApiModelProperty(value = "公司信息")
|
||||
private CompanyVO companyVO;
|
||||
|
||||
@ApiModelProperty(value = "查询:保险筛选项值")
|
||||
private List<String> conditionVals;
|
||||
|
||||
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.OtherConfigVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName Channel.java
|
||||
* @Description TODO
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value="AuthChannel对象", description="三方渠道")
|
||||
public class AuthChannelVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public AuthChannelVO(String domain,Long id, String dataState, String channelName, String channelLabel, String appId, String appSecret, String otherConfig, String companyNo, String notifyUrl) {
|
||||
super(id, dataState);
|
||||
this.channelName = channelName;
|
||||
this.channelLabel = channelLabel;
|
||||
this.appId = appId;
|
||||
this.appSecret = appSecret;
|
||||
this.otherConfig = otherConfig;
|
||||
this.companyNo = companyNo;
|
||||
this.notifyUrl = notifyUrl;
|
||||
this.domain = domain;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "通道名称")
|
||||
private String channelName;
|
||||
|
||||
@ApiModelProperty(value = "通道唯一标记")
|
||||
private String channelLabel;
|
||||
|
||||
@ApiModelProperty(value = "商户appid")
|
||||
private String appId;
|
||||
|
||||
@ApiModelProperty(value = "企业三方app秘钥")
|
||||
private String appSecret;
|
||||
|
||||
@ApiModelProperty(value = "其他配置")
|
||||
private String otherConfig;
|
||||
|
||||
@ApiModelProperty(value = "请求域名")
|
||||
private String domain;
|
||||
|
||||
@ApiModelProperty(value = "商户编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "回调地址")
|
||||
private String notifyUrl;
|
||||
|
||||
@ApiModelProperty(value = "其他配置")
|
||||
private List<OtherConfigVO> otherConfigVOs;
|
||||
|
||||
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:企业账号管理
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value="Company对象", description="企业账号管理")
|
||||
public class CompanyVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public CompanyVO(Long id, String dataState, String companyNo, String companName, String registeredNo, String province, String area, String city, String address, String status, LocalDateTime expireTime, String webSite, String appSite, String email, String tel, String leaderMobile, String leaderName, List<AuthChannelVO> authChannelVOs,Long[] checkIds) {
|
||||
super(id, dataState);
|
||||
this.companyNo = companyNo;
|
||||
this.companName = companName;
|
||||
this.registeredNo = registeredNo;
|
||||
this.province = province;
|
||||
this.area = area;
|
||||
this.city = city;
|
||||
this.address = address;
|
||||
this.status = status;
|
||||
this.expireTime = expireTime;
|
||||
this.webSite = webSite;
|
||||
this.appSite = appSite;
|
||||
this.email = email;
|
||||
this.tel = tel;
|
||||
this.leaderMobile = leaderMobile;
|
||||
this.leaderName = leaderName;
|
||||
this.authChannelVOs = authChannelVOs;
|
||||
this.checkIds = checkIds;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "商户编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private String companName;
|
||||
|
||||
@ApiModelProperty(value = "统一社会信用代码")
|
||||
private String registeredNo;
|
||||
|
||||
@ApiModelProperty(value = "地址(省)")
|
||||
private String province;
|
||||
|
||||
@ApiModelProperty(value = "地址(区)")
|
||||
private String area;
|
||||
|
||||
@ApiModelProperty(value = "地址(市)")
|
||||
private String city;
|
||||
|
||||
@ApiModelProperty(value = "详细地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "状态(停用:0,试用:1,,正式:2)")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "到期时间 (试用下是默认七天后到期,状态改成停用)")
|
||||
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
||||
@JsonSerialize(using = LocalDateTimeSerializer.class)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//set
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
@ApiModelProperty(value = "商户门店web站点")
|
||||
private String webSite;
|
||||
|
||||
@ApiModelProperty(value = "商户app站点")
|
||||
private String appSite;
|
||||
|
||||
@ApiModelProperty(value = "联系邮箱")
|
||||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "电话")
|
||||
private String tel;
|
||||
|
||||
@ApiModelProperty(value = "负责人手机")
|
||||
private String leaderMobile;
|
||||
|
||||
@ApiModelProperty(value = "负责人姓名")
|
||||
private String leaderName;
|
||||
|
||||
@ApiModelProperty(value = "三方授权渠道")
|
||||
private List<AuthChannelVO> authChannelVOs;
|
||||
|
||||
@ApiModelProperty(value = "批量操作id集合")
|
||||
private Long[] checkIds;
|
||||
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.file.FileVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:客户表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CustomerVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public CustomerVO(Long id, String dataState, String username, String password, String nickName, String email,
|
||||
String clientId, String realName, String mobile, String sex, String remark,String companyNo,
|
||||
String[] checkedIds, String openId, String userToken, DataSecurityVO dataSecurityVO) {
|
||||
super(id, dataState);
|
||||
this.companyNo = companyNo;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.nickName = nickName;
|
||||
this.email = email;
|
||||
this.clientId = clientId;
|
||||
this.realName = realName;
|
||||
this.mobile = mobile;
|
||||
this.sex = sex;
|
||||
this.remark = remark;
|
||||
this.openId = openId;
|
||||
this.userToken = userToken;
|
||||
this.dataSecurityVO = dataSecurityVO;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "客户账号")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "客户昵称")
|
||||
private String nickName;
|
||||
|
||||
@ApiModelProperty(value = "客户邮箱")
|
||||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "客户端")
|
||||
private String clientId;
|
||||
|
||||
@ApiModelProperty(value = "真实姓名")
|
||||
private String realName;
|
||||
|
||||
@ApiModelProperty(value = "手机号码")
|
||||
private String mobile;
|
||||
|
||||
@ApiModelProperty(value = "客户性别(0男 1女 2未知)")
|
||||
private String sex;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "三方openId")
|
||||
private String openId;
|
||||
|
||||
@ApiModelProperty(value = "客户令牌")
|
||||
private String userToken;
|
||||
|
||||
@ApiModelProperty(value = "客户数据权限")
|
||||
private DataSecurityVO dataSecurityVO;
|
||||
|
||||
@ApiModelProperty(value = "文件VO对象")
|
||||
private List<FileVO> fileVOs;
|
||||
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DataSecurity.java
|
||||
* @Description TODO
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
public class DataSecurityVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "仅本人数据权限")
|
||||
private Boolean youselfData;
|
||||
|
||||
@ApiModelProperty(value = "数据权限对应部门编号集合")
|
||||
private List<String> deptNos;
|
||||
|
||||
@Builder
|
||||
public DataSecurityVO(Boolean youselfData, List<String> deptNos) {
|
||||
this.youselfData = youselfData;
|
||||
this.deptNos = deptNos;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:部门岗位用户关联表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DeptPostUserVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public DeptPostUserVO(Long id, String dataState, Long userId, String deptNo, String postNo,String companyNo) {
|
||||
super(id, dataState);
|
||||
this.userId = userId;
|
||||
this.deptNo = deptNo;
|
||||
this.postNo = postNo;
|
||||
this.companyNo=companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "用户ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "部门编号")
|
||||
private String deptNo;
|
||||
|
||||
@ApiModelProperty(value = "岗位编码")
|
||||
private String postNo;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:部门表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DeptVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public DeptVO(Long id, String dataState, String parentDeptNo, String deptNo, String deptName, Integer sortNo, Long leaderId, String[] checkedDeptNos, Long roleId, String companyNo) {
|
||||
super(id, dataState);
|
||||
this.parentDeptNo = parentDeptNo;
|
||||
this.deptNo = deptNo;
|
||||
this.deptName = deptName;
|
||||
this.sortNo = sortNo;
|
||||
this.leaderId = leaderId;
|
||||
this.checkedDeptNos = checkedDeptNos;
|
||||
this.roleId = roleId;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "父部门编号")
|
||||
private String parentDeptNo;
|
||||
|
||||
@ApiModelProperty(value = "部门编号")
|
||||
private String deptNo;
|
||||
|
||||
@ApiModelProperty(value = "部门名称")
|
||||
private String deptName;
|
||||
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer sortNo;
|
||||
|
||||
@ApiModelProperty(value = "负责人Id")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long leaderId;
|
||||
|
||||
@ApiModelProperty(value = "TREE结构:选中部门No")
|
||||
private String[] checkedDeptNos;
|
||||
|
||||
@ApiModelProperty(value = "角色查询部门:部门对应角色id")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long roleId;
|
||||
|
||||
@ApiModelProperty(value = "部门No")
|
||||
private String companyNo;
|
||||
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:菜单meta属性
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class MenuMetaVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "图标")
|
||||
private String icon;
|
||||
|
||||
@ApiModelProperty(value = "角色")
|
||||
private List<String> roles;
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 动态菜单VO对象
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class MenuVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// 设定路由的名字,一定要填写不然使用<keep-alive>时会出现各种问题
|
||||
@ApiModelProperty(value = "路由名字")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "请求路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(value = "高亮子菜单")
|
||||
private String redirect;
|
||||
|
||||
@ApiModelProperty(value = "模块跳转目标")
|
||||
private String component;
|
||||
|
||||
// 当设置 true 的时候该路由不会在侧边栏出现 如401,login等页面,或者如一些编辑页面/edit/1
|
||||
@ApiModelProperty(value = "是否显示")
|
||||
private Boolean hidden;
|
||||
|
||||
@ApiModelProperty(value = "子菜单")
|
||||
private List<MenuVO> children;
|
||||
|
||||
@ApiModelProperty(value = "meta属性")
|
||||
private MenuMetaVO meta;
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:岗位表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class PostVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public PostVO(Long id, String dataState, String deptNo, String postNo, String postName, Integer sortNo, String remark, String companyNo, DeptVO deptVO) {
|
||||
super(id, dataState);
|
||||
this.deptNo = deptNo;
|
||||
this.postNo = postNo;
|
||||
this.postName = postName;
|
||||
this.sortNo = sortNo;
|
||||
this.remark = remark;
|
||||
this.companyNo = companyNo;
|
||||
this.deptVO = deptVO;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "部门编号")
|
||||
private String deptNo;
|
||||
|
||||
@ApiModelProperty(value = "岗位编码:父部门编号+001【3位】")
|
||||
private String postNo;
|
||||
|
||||
@ApiModelProperty(value = "岗位名称")
|
||||
private String postName;
|
||||
|
||||
@ApiModelProperty(value = "显示顺序")
|
||||
private Integer sortNo;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "职位对应部门")
|
||||
private DeptVO deptVO;
|
||||
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName QueryDataSecurityVo.java
|
||||
* @Description 查询数据权限对象
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class QueryDataSecurityVO implements Serializable {
|
||||
|
||||
public List<RoleVO> roleVOs;
|
||||
|
||||
public Long userId;
|
||||
|
||||
@Builder
|
||||
public QueryDataSecurityVO(List<RoleVO> roleVOs, Long userId) {
|
||||
this.roleVOs = roleVOs;
|
||||
this.userId = userId;
|
||||
}
|
||||
}
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:权限表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class ResourceVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public ResourceVO(Long id, String dataState, String resourceNo, String parentResourceNo, String resourceName,
|
||||
String resourceType, String requestPath, String label, Integer sortNo, String icon,
|
||||
String remark, String[] checkedResourceNos, Long roleId) {
|
||||
super(id, dataState);
|
||||
this.resourceNo = resourceNo;
|
||||
this.parentResourceNo = parentResourceNo;
|
||||
this.resourceName = resourceName;
|
||||
this.resourceType = resourceType;
|
||||
this.requestPath = requestPath;
|
||||
this.label = label;
|
||||
this.sortNo = sortNo;
|
||||
this.icon = icon;
|
||||
this.remark = remark;
|
||||
this.checkedResourceNos = checkedResourceNos;
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "资源编号")
|
||||
private String resourceNo;
|
||||
|
||||
@ApiModelProperty(value = "父资源编号")
|
||||
private String parentResourceNo;
|
||||
|
||||
@ApiModelProperty(value = "资源名称")
|
||||
private String resourceName;
|
||||
|
||||
@ApiModelProperty(value = "资源类型:s平台 c目录 m菜单 r按钮")
|
||||
private String resourceType;
|
||||
|
||||
@ApiModelProperty(value = "请求地址")
|
||||
private String requestPath;
|
||||
|
||||
@ApiModelProperty(value = "权限标识")
|
||||
private String label;
|
||||
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer sortNo;
|
||||
|
||||
@ApiModelProperty(value = "图标")
|
||||
private String icon;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "TREE结构:选中资源编号")
|
||||
private String[] checkedResourceNos;
|
||||
|
||||
@ApiModelProperty(value = "角色查询资源:资源对应角色id")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long roleId;
|
||||
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:角色表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RoleVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public RoleVO(Long id, String dataState, String roleName, String label, Integer sortNo, String remark, String[] checkedResourceNos, String[] checkedDeptNos, Long userId, String dataScope, String companyNo) {
|
||||
super(id, dataState);
|
||||
this.roleName = roleName;
|
||||
this.label = label;
|
||||
this.sortNo = sortNo;
|
||||
this.remark = remark;
|
||||
this.checkedResourceNos = checkedResourceNos;
|
||||
this.checkedDeptNos = checkedDeptNos;
|
||||
this.userId = userId;
|
||||
this.dataScope = dataScope;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "角色名称")
|
||||
private String roleName;
|
||||
|
||||
@ApiModelProperty(value = "角色标识")
|
||||
private String label;
|
||||
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer sortNo;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "TREE结构:选中资源No")
|
||||
private String[] checkedResourceNos;
|
||||
|
||||
@ApiModelProperty(value = "TREE结构:选中部门No")
|
||||
private String[] checkedDeptNos;
|
||||
|
||||
@ApiModelProperty(value = "人员查询部门:当前人员Id")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "数据范围(0本人 1自定义)")
|
||||
private String dataScope;
|
||||
|
||||
@ApiModelProperty(value = "企业No")
|
||||
private String companyNo;
|
||||
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.validation.Create;
|
||||
import com.itheima.sfbx.framework.commons.validation.Update;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Description:用户表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class UserVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public UserVO(Long id, String dataState, String companyNo, String username, String password, String nickName, String email, String clientId, String realName, String mobile, String sex, String remark, String openId, Set<String> roleVOIds, Set<DeptPostUserVO> deptPostUserVOs, Set<String> roleLabels, Set<String> resourceRequestPaths, String userToken, DataSecurityVO dataSecurityVO, String deptNo, String postNo, Long roleId, Boolean onlyAuthenticate) {
|
||||
super(id, dataState);
|
||||
this.companyNo = companyNo;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.nickName = nickName;
|
||||
this.email = email;
|
||||
this.clientId = clientId;
|
||||
this.realName = realName;
|
||||
this.mobile = mobile;
|
||||
this.sex = sex;
|
||||
this.remark = remark;
|
||||
this.openId = openId;
|
||||
this.roleVOIds = roleVOIds;
|
||||
this.deptPostUserVOs = deptPostUserVOs;
|
||||
this.roleLabels = roleLabels;
|
||||
this.resourceRequestPaths = resourceRequestPaths;
|
||||
this.userToken = userToken;
|
||||
this.dataSecurityVO = dataSecurityVO;
|
||||
this.deptNo = deptNo;
|
||||
this.postNo = postNo;
|
||||
this.roleId = roleId;
|
||||
this.onlyAuthenticate = onlyAuthenticate;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "用户账号")
|
||||
private String username;
|
||||
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "用户昵称")
|
||||
private String nickName;
|
||||
|
||||
@ApiModelProperty(value = "用户邮箱")
|
||||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "客户端")
|
||||
private String clientId;
|
||||
|
||||
@ApiModelProperty(value = "真实姓名")
|
||||
private String realName;
|
||||
|
||||
@ApiModelProperty(value = "手机号码")
|
||||
private String mobile;
|
||||
|
||||
@ApiModelProperty(value = "用户性别(0男 1女 2未知)")
|
||||
private String sex;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "三方openId")
|
||||
private String openId;
|
||||
|
||||
@ApiModelProperty(value = "查询用户:用户角色主键集合")
|
||||
private Set<String> roleVOIds;
|
||||
|
||||
@ApiModelProperty(value = "查询用户:所属部门职位")
|
||||
private Set<DeptPostUserVO> deptPostUserVOs;
|
||||
|
||||
@ApiModelProperty(value = "构建令牌:用户角色标识")
|
||||
private Set<String> roleLabels;
|
||||
|
||||
@ApiModelProperty(value = "构建令牌:用户权限路径")
|
||||
private Set<String> resourceRequestPaths;
|
||||
|
||||
@ApiModelProperty(value = "用户令牌")
|
||||
private String userToken;
|
||||
|
||||
@ApiModelProperty(value = "数据权限")
|
||||
private DataSecurityVO dataSecurityVO;
|
||||
|
||||
@ApiModelProperty(value = "部门编号【查询关联】")
|
||||
private String deptNo;
|
||||
|
||||
@ApiModelProperty(value = "职位编号【查询关联】")
|
||||
private String postNo;
|
||||
|
||||
@ApiModelProperty(value = "角色主键【查询关联】")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long roleId;
|
||||
|
||||
@ApiModelProperty(value = "只做请求认证,客户只需请求认证,员工除请求认证,还需访问授权")
|
||||
private Boolean onlyAuthenticate ;
|
||||
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.security;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName LoginVo.java
|
||||
* @Description 登录名称处理对象
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
public class UsernameVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public UsernameVO(String username, String clientId, String loginType, String loginBeanName,String companyNo) {
|
||||
this.username = username;
|
||||
this.clientId = clientId;
|
||||
this.loginType = loginType;
|
||||
this.loginBeanName = loginBeanName;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
//登录名称
|
||||
private String username;
|
||||
|
||||
//客户端
|
||||
private String clientId;
|
||||
|
||||
//登录类型
|
||||
private String loginType;
|
||||
|
||||
//登录处理类bean名称
|
||||
private String loginBeanName;
|
||||
|
||||
//企业编号
|
||||
private String companyNo;
|
||||
|
||||
/**
|
||||
* 用户姓名
|
||||
*/
|
||||
private String realName;
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.sms;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName Proof.java
|
||||
* @Description 证明文件对象
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
public class ProofVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public ProofVO(String proofImage, String proofType) {
|
||||
this.proofImage = proofImage;
|
||||
this.proofType = proofType;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "签名对应的资质证明图片需先进行 base64编码格式转换")
|
||||
private String proofImage;
|
||||
|
||||
@ApiModelProperty(value = "签名证明文件类型")
|
||||
private String proofType;
|
||||
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.sms;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @ClassName SendMessageVO.java
|
||||
* @Description 短信发送Vo
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
public class SendMessageVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "模板编号")
|
||||
String templateNo;
|
||||
|
||||
@ApiModelProperty(value = "签名编号")
|
||||
String sginNo;
|
||||
|
||||
@ApiModelProperty(value = "均衡算法")
|
||||
String loadBalancerType;
|
||||
|
||||
@ApiModelProperty(value = "手机号码组")
|
||||
Set<String> mobiles;
|
||||
|
||||
@ApiModelProperty(value = "模板参数")
|
||||
LinkedHashMap<String, String> templateParam;
|
||||
|
||||
@Builder
|
||||
public SendMessageVO(String templateNo, String sginNo, String loadBalancerType, Set<String> mobiles, LinkedHashMap<String, String> templateParam) {
|
||||
this.templateNo = templateNo;
|
||||
this.sginNo = sginNo;
|
||||
this.loadBalancerType = loadBalancerType;
|
||||
this.mobiles = mobiles;
|
||||
this.templateParam = templateParam;
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.sms;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:黑名单表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SmsBlacklistVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public SmsBlacklistVO(Long id, String dataState, String mobile,String companyNo) {
|
||||
super(id, dataState);
|
||||
this.mobile = mobile;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "手机号码")
|
||||
private String mobile;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.sms;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.OtherConfigVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 短信渠道
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SmsChannelVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public SmsChannelVO(Long id, String dataState, String channelName, String channelLabel, String channelType, String domain, String accessKeyId, String accessKeySecret, String otherConfig, String level, String remark, String[] checkedIds, String companyNo, List<OtherConfigVO> otherConfigs) {
|
||||
super(id, dataState);
|
||||
this.channelName = channelName;
|
||||
this.channelLabel = channelLabel;
|
||||
this.channelType = channelType;
|
||||
this.domain = domain;
|
||||
this.accessKeyId = accessKeyId;
|
||||
this.accessKeySecret = accessKeySecret;
|
||||
this.otherConfig = otherConfig;
|
||||
this.level = level;
|
||||
this.remark = remark;
|
||||
this.checkedIds = checkedIds;
|
||||
this.companyNo = companyNo;
|
||||
this.otherConfigs = otherConfigs;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "通道名称")
|
||||
private String channelName;
|
||||
|
||||
@ApiModelProperty(value = "通道唯一标记")
|
||||
private String channelLabel;
|
||||
|
||||
@ApiModelProperty(value = "通道类型,1:文字,2:语音,3:推送")
|
||||
private String channelType;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
private String domain;
|
||||
|
||||
@ApiModelProperty(value = "秘钥id")
|
||||
private String accessKeyId;
|
||||
|
||||
@ApiModelProperty(value = "秘钥值")
|
||||
private String accessKeySecret;
|
||||
|
||||
@ApiModelProperty(value = "其他配置")
|
||||
private String otherConfig;
|
||||
|
||||
@ApiModelProperty(value = "优先级")
|
||||
private String level;
|
||||
|
||||
@ApiModelProperty(value = "短信申请说明")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "选中节点")
|
||||
private String[] checkedIds;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "扩展配置",dataType = "OtherConfigVO")
|
||||
private List<OtherConfigVO> otherConfigs;
|
||||
|
||||
}
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.sms;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Description:发送记录表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SmsSendRecordVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public SmsSendRecordVO(Long id, String dataState, String channelName, String channelLabel, Long templateId, String templateNo, String templateCode, String templateType, String signCode, String signName, String mobile, String sendContent, String sendStatus, String sendMsg, String acceptStatus, String acceptMsg, String serialNo, String templateParams, String companyNo) {
|
||||
super(id, dataState);
|
||||
this.channelName = channelName;
|
||||
this.channelLabel = channelLabel;
|
||||
this.templateId = templateId;
|
||||
this.templateNo = templateNo;
|
||||
this.templateCode = templateCode;
|
||||
this.templateType = templateType;
|
||||
this.signCode = signCode;
|
||||
this.signName = signName;
|
||||
this.mobile = mobile;
|
||||
this.sendContent = sendContent;
|
||||
this.sendStatus = sendStatus;
|
||||
this.sendMsg = sendMsg;
|
||||
this.acceptStatus = acceptStatus;
|
||||
this.acceptMsg = acceptMsg;
|
||||
this.serialNo = serialNo;
|
||||
this.templateParams = templateParams;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "通道名称")
|
||||
private String channelName;
|
||||
|
||||
@ApiModelProperty(value = "通道唯一标识")
|
||||
private String channelLabel;
|
||||
|
||||
@ApiModelProperty(value = "模板表主键ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long templateId;
|
||||
|
||||
@ApiModelProperty(value = "应用模板编号:多通道编号相同则认为是一个模板多个通道公用")
|
||||
private String templateNo;
|
||||
|
||||
@ApiModelProperty(value = "三方应用模板code")
|
||||
private String templateCode;
|
||||
|
||||
@ApiModelProperty(value = "短信类型: 0、通知 1、营销")
|
||||
private String templateType;
|
||||
|
||||
@ApiModelProperty(value = "三方签名code:发送短信可能用到")
|
||||
private String signCode;
|
||||
|
||||
@ApiModelProperty(value = "签名名称")
|
||||
private String signName;
|
||||
|
||||
@ApiModelProperty(value = "手机号码")
|
||||
private String mobile;
|
||||
|
||||
@ApiModelProperty(value = "发生内容")
|
||||
private String sendContent;
|
||||
|
||||
@ApiModelProperty(value = "发送状态")
|
||||
private String sendStatus;
|
||||
|
||||
@ApiModelProperty(value = "发送返回信息")
|
||||
private String sendMsg;
|
||||
|
||||
@ApiModelProperty(value = "是否受理成功")
|
||||
private String acceptStatus;
|
||||
|
||||
@ApiModelProperty(value = "受理返回信息")
|
||||
private String acceptMsg;
|
||||
|
||||
@ApiModelProperty(value = "发送流水")
|
||||
private String serialNo;
|
||||
|
||||
@ApiModelProperty(value = "模板参数")
|
||||
private String templateParams;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.sms;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.file.FileVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.LinkedList;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SmsSignVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public SmsSignVO(Long id, String dataState, String channelLabel, String signName, String signCode, String signType,
|
||||
String documentType, String international, String signPurpose, String proofImage,
|
||||
String proofType, String remark, String acceptStatus, String acceptMsg, String auditStatus,
|
||||
String auditMsg, String signNo, LinkedList<ProofVO> proofVos, LinkedList<FileVO> fileVOs,String companyNo) {
|
||||
super(id, dataState);
|
||||
this.channelLabel = channelLabel;
|
||||
this.signName = signName;
|
||||
this.signCode = signCode;
|
||||
this.signType = signType;
|
||||
this.documentType = documentType;
|
||||
this.international = international;
|
||||
this.signPurpose = signPurpose;
|
||||
this.proofImage = proofImage;
|
||||
this.proofType = proofType;
|
||||
this.remark = remark;
|
||||
this.acceptStatus = acceptStatus;
|
||||
this.acceptMsg = acceptMsg;
|
||||
this.auditStatus = auditStatus;
|
||||
this.auditMsg = auditMsg;
|
||||
this.signNo = signNo;
|
||||
this.proofVos = proofVos;
|
||||
this.fileVOs = fileVOs;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "通道唯一标识")
|
||||
private String channelLabel;
|
||||
|
||||
@ApiModelProperty(value = "签名名称")
|
||||
private String signName;
|
||||
|
||||
@ApiModelProperty(value = "三方签名code:发送短信需要用到")
|
||||
private String signCode;
|
||||
|
||||
@ApiModelProperty(value = "签名类型")
|
||||
private String signType;
|
||||
|
||||
@ApiModelProperty(value = "证明类型")
|
||||
private String documentType;
|
||||
|
||||
@ApiModelProperty(value = "是否国际/港澳台短信")
|
||||
private String international;
|
||||
|
||||
@ApiModelProperty(value = "签名用途: 0:自用。 1:他用。")
|
||||
private String signPurpose;
|
||||
|
||||
@ApiModelProperty(value = "签名对应的资质证明图片需先进行 base64 编码格式转换")
|
||||
private String proofImage;
|
||||
|
||||
@ApiModelProperty(value = "签名证明文件类型")
|
||||
private String proofType;
|
||||
|
||||
@ApiModelProperty(value = "短信申请说明")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "是否受理成功")
|
||||
private String acceptStatus;
|
||||
|
||||
@ApiModelProperty(value = "受理返回信息")
|
||||
private String acceptMsg;
|
||||
|
||||
@ApiModelProperty(value = "审核状态")
|
||||
private String auditStatus;
|
||||
|
||||
@ApiModelProperty(value = "审核信息")
|
||||
private String auditMsg;
|
||||
|
||||
@ApiModelProperty(value = "应用签名编号:签名编号相同则认为是一个签名多个通道公用")
|
||||
private String signNo;
|
||||
|
||||
@ApiModelProperty(value = "证明文件组",dataType = "ProofVo")
|
||||
private LinkedList<ProofVO> proofVos;
|
||||
|
||||
@ApiModelProperty(value = "附件信息",dataType = "AffixVo")
|
||||
private LinkedList<FileVO> fileVOs;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
}
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.sms;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.OtherConfigVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:模板表
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SmsTemplateVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public SmsTemplateVO(Long id, String dataState, String channelLabel, String templateName, String smsType,
|
||||
String templateNo, String templateCode, String content, String otherConfig,
|
||||
String international, String remark, String acceptStatus, String acceptMsg,
|
||||
String auditStatus, String auditMsg, List<OtherConfigVO> otherConfigs,String companyNo) {
|
||||
super(id, dataState);
|
||||
this.channelLabel = channelLabel;
|
||||
this.templateName = templateName;
|
||||
this.smsType = smsType;
|
||||
this.templateNo = templateNo;
|
||||
this.templateCode = templateCode;
|
||||
this.content = content;
|
||||
this.otherConfig = otherConfig;
|
||||
this.international = international;
|
||||
this.remark = remark;
|
||||
this.acceptStatus = acceptStatus;
|
||||
this.acceptMsg = acceptMsg;
|
||||
this.auditStatus = auditStatus;
|
||||
this.auditMsg = auditMsg;
|
||||
this.otherConfigs = otherConfigs;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "通道唯一标识")
|
||||
private String channelLabel;
|
||||
|
||||
@ApiModelProperty(value = "魔板名称")
|
||||
private String templateName;
|
||||
|
||||
@ApiModelProperty(value = "短信类型")
|
||||
private String smsType;
|
||||
|
||||
@ApiModelProperty(value = "应用模板编号:多通道编号相同则认为是一个模板多个通道公用")
|
||||
private String templateNo;
|
||||
|
||||
@ApiModelProperty(value = "三方应用模板code")
|
||||
private String templateCode;
|
||||
|
||||
@ApiModelProperty(value = "模板内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "变量配置")
|
||||
private String otherConfig;
|
||||
|
||||
@ApiModelProperty(value = "是否国际/港澳台短信")
|
||||
private String international;
|
||||
|
||||
@ApiModelProperty(value = "短信申请说明")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "是否受理成功")
|
||||
private String acceptStatus;
|
||||
|
||||
@ApiModelProperty(value = "受理返回信息")
|
||||
private String acceptMsg;
|
||||
|
||||
@ApiModelProperty(value = "审核状态")
|
||||
private String auditStatus;
|
||||
|
||||
@ApiModelProperty(value = "审核信息")
|
||||
private String auditMsg;
|
||||
|
||||
@ApiModelProperty(value = "变量配置",dataType = "OtherConfigVO")
|
||||
private List<OtherConfigVO> otherConfigs;
|
||||
|
||||
@ApiModelProperty(value = "企业编号")
|
||||
private String companyNo;
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.trade;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName AliAppPeriodic.java
|
||||
* @Description 阿里APP周期扣款参数对象
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
public class AliPeriodicVO implements Serializable {
|
||||
|
||||
@Builder
|
||||
public AliPeriodicVO(String agreementNo,String contractNo, String externalAgreementNo, String signScene, String signNotifyUrl, String rulePeriodType, String rulePeriod, String ruleExecuteTime, String ruleTotalAmount, String ruleSingleAmount, String ruleTotalPayments, String accessChannel) {
|
||||
this.contractNo = contractNo;
|
||||
this.externalAgreementNo = externalAgreementNo;
|
||||
this.agreementNo = agreementNo;
|
||||
this.signScene = signScene;
|
||||
this.signNotifyUrl = signNotifyUrl;
|
||||
this.rulePeriodType = rulePeriodType;
|
||||
this.rulePeriod = rulePeriod;
|
||||
this.ruleExecuteTime = ruleExecuteTime;
|
||||
this.ruleTotalAmount = ruleTotalAmount;
|
||||
this.ruleSingleAmount = ruleSingleAmount;
|
||||
this.ruleTotalPayments = ruleTotalPayments;
|
||||
this.accessChannel = accessChannel;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:合同号")
|
||||
private String contractNo;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:商户签约号")
|
||||
private String externalAgreementNo;
|
||||
|
||||
@ApiModelProperty(value = "支付宝签约号:关联支付")
|
||||
private String agreementNo;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:扣款场景")
|
||||
private String signScene;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:签约成功异步通知地址")
|
||||
private String signNotifyUrl;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:周期类型")
|
||||
private String rulePeriodType;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:周期数")
|
||||
private String rulePeriod;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:下次扣款的时间")
|
||||
private String ruleExecuteTime;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:扣款总金额")
|
||||
private String ruleTotalAmount;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:单次扣款最大金额")
|
||||
private String ruleSingleAmount;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:总扣款次数")
|
||||
private String ruleTotalPayments;
|
||||
|
||||
@ApiModelProperty(value = "签约扣款:通道")
|
||||
private String accessChannel;
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.trade;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.OtherConfigVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @ClassName PayChannelVO.java
|
||||
* @Description 支付通道
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class PayChannelVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public PayChannelVO(Long id, String dataState, String channelName, String channelLabel, String domain, String appId, String publicKey, String merchantPrivateKey, String otherConfig, String encryptKey, String remark, List<OtherConfigVO> otherConfigs, String companyNo, String notifyUrl) {
|
||||
super(id, dataState);
|
||||
this.channelName = channelName;
|
||||
this.channelLabel = channelLabel;
|
||||
this.domain = domain;
|
||||
this.appId = appId;
|
||||
this.publicKey = publicKey;
|
||||
this.merchantPrivateKey = merchantPrivateKey;
|
||||
this.otherConfig = otherConfig;
|
||||
this.encryptKey = encryptKey;
|
||||
this.remark = remark;
|
||||
this.otherConfigs = otherConfigs;
|
||||
this.companyNo = companyNo;
|
||||
this.notifyUrl = notifyUrl;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "通道名称")
|
||||
private String channelName;
|
||||
|
||||
@ApiModelProperty(value = "通道唯一标记")
|
||||
private String channelLabel;
|
||||
|
||||
@ApiModelProperty(value = "域名")
|
||||
private String domain;
|
||||
|
||||
@ApiModelProperty(value = "商户appid")
|
||||
private String appId;
|
||||
|
||||
@ApiModelProperty(value = "公钥")
|
||||
private String publicKey;
|
||||
|
||||
@ApiModelProperty(value = "商户私钥")
|
||||
private String merchantPrivateKey;
|
||||
|
||||
@ApiModelProperty(value = "其他配置")
|
||||
private String otherConfig;
|
||||
|
||||
@ApiModelProperty(value = "AES混淆密钥")
|
||||
private String encryptKey;
|
||||
|
||||
@ApiModelProperty(value = "说明")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty(value = "扩展配置",dataType = "OtherConfigVO")
|
||||
private List<OtherConfigVO> otherConfigs;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "商户ID【系统内部识别使用】")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "回调地址")
|
||||
private String notifyUrl;
|
||||
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.trade;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RefundRecordVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public RefundRecordVO(Long id, String dataState, Long tradeOrderNo, Long productOrderNo, String refundNo, String tradeChannel, String refundStatus, String refundCode, String refundMsg, String memo, BigDecimal refundAmount, String companyNo) {
|
||||
super(id, dataState);
|
||||
this.tradeOrderNo = tradeOrderNo;
|
||||
this.productOrderNo = productOrderNo;
|
||||
this.refundNo = refundNo;
|
||||
this.tradeChannel = tradeChannel;
|
||||
this.refundStatus = refundStatus;
|
||||
this.refundCode = refundCode;
|
||||
this.refundMsg = refundMsg;
|
||||
this.memo = memo;
|
||||
this.refundAmount = refundAmount;
|
||||
this.companyNo = companyNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "交易系统订单号【对于三方来说:商户订单】")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long tradeOrderNo;
|
||||
|
||||
@ApiModelProperty(value = "业务系统订单号")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long productOrderNo;
|
||||
|
||||
@ApiModelProperty(value = "本次退款订单号")
|
||||
private String refundNo;
|
||||
|
||||
@ApiModelProperty(value = "退款渠道【支付宝、微信、现金】")
|
||||
private String tradeChannel;
|
||||
|
||||
@ApiModelProperty(value = "退款状态【成功:SUCCESS,进行中:SENDING】")
|
||||
private String refundStatus;
|
||||
|
||||
@ApiModelProperty(value = "返回编码")
|
||||
private String refundCode;
|
||||
|
||||
@ApiModelProperty(value = "返回信息")
|
||||
private String refundMsg;
|
||||
|
||||
@ApiModelProperty(value = "备注【订单门店,桌台信息】")
|
||||
private String memo;
|
||||
|
||||
@ApiModelProperty(value = "本次退款金额")
|
||||
private BigDecimal refundAmount;
|
||||
|
||||
@ApiModelProperty(value = "商户号")
|
||||
private String companyNo;
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.trade;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @ClassName SignContract.java
|
||||
* @Description 签约合同
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value="SignContract对象", description="签约合同")
|
||||
public class SignContractVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public SignContractVO(String agreementNo, Long id, String dataState, String contractNo, String externalAgreementNo, String signState, String tradeChannel, String rulePeriodType, Long rulePeriod, BigDecimal ruleTotalAmount, BigDecimal ruleSingleAmount, Long ruleTotalPayments) {
|
||||
super(id, dataState);
|
||||
this.contractNo = contractNo;
|
||||
this.externalAgreementNo = externalAgreementNo;
|
||||
this.signState = signState;
|
||||
this.tradeChannel = tradeChannel;
|
||||
this.rulePeriodType = rulePeriodType;
|
||||
this.rulePeriod = rulePeriod;
|
||||
this.ruleTotalAmount = ruleTotalAmount;
|
||||
this.ruleSingleAmount = ruleSingleAmount;
|
||||
this.ruleTotalPayments = ruleTotalPayments;
|
||||
this.agreementNo = agreementNo;
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "合同编号:关联业务")
|
||||
private String contractNo;
|
||||
|
||||
@ApiModelProperty(value = "商户签约号")
|
||||
private String externalAgreementNo;
|
||||
|
||||
@ApiModelProperty(value = "支付宝签约号:关联支付")
|
||||
private String agreementNo;
|
||||
|
||||
@ApiModelProperty(value = "签约状态:1. TEMP:暂存,协议未生效过;2. NORMAL:正常;3. STOP:暂停")
|
||||
private String signState;
|
||||
|
||||
@ApiModelProperty(value = "支付渠道【支付宝、微信】")
|
||||
private String tradeChannel;
|
||||
|
||||
@ApiModelProperty(value = "周期类型")
|
||||
private String rulePeriodType;
|
||||
|
||||
@ApiModelProperty(value = "周期数")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long rulePeriod;
|
||||
|
||||
@ApiModelProperty(value = "总金额")
|
||||
private BigDecimal ruleTotalAmount;
|
||||
|
||||
@ApiModelProperty(value = "总金额")
|
||||
private BigDecimal ruleSingleAmount;
|
||||
|
||||
@ApiModelProperty(value = "扣款总次数")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long ruleTotalPayments;
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
package com.itheima.sfbx.framework.commons.dto.trade;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.itheima.sfbx.framework.commons.dto.basic.BaseVO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName TradeVO.java
|
||||
* @Description 交易结果
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class TradeVO extends BaseVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Builder
|
||||
public TradeVO(Long id,String notifyUrl, String dataState, String openId, Long productOrderNo, Long tradeOrderNo, String tradeChannel,
|
||||
String tradeState, String payeeName, Long payeeId, String payerName, Long payerId, BigDecimal tradeAmount,
|
||||
BigDecimal refund, String isRefund, String resultCode, String resultMsg, String resultJson, String placeOrderCode,
|
||||
String placeOrderMsg, String placeOrderJson, String memo, String qrCodeImageBase64, String outRequestNo,
|
||||
BigDecimal operTionRefund, String authCode, String quitUrl, String returnUrl, String billType, Date billDate,
|
||||
String billDownloadUrl, String companyNo) {
|
||||
super(id, dataState);
|
||||
this.openId = openId;
|
||||
this.productOrderNo = productOrderNo;
|
||||
this.tradeOrderNo = tradeOrderNo;
|
||||
this.tradeChannel = tradeChannel;
|
||||
this.tradeState = tradeState;
|
||||
this.payeeName = payeeName;
|
||||
this.payeeId = payeeId;
|
||||
this.payerName = payerName;
|
||||
this.payerId = payerId;
|
||||
this.tradeAmount = tradeAmount;
|
||||
this.refund = refund;
|
||||
this.isRefund = isRefund;
|
||||
this.resultCode = resultCode;
|
||||
this.resultMsg = resultMsg;
|
||||
this.resultJson = resultJson;
|
||||
this.placeOrderCode = placeOrderCode;
|
||||
this.placeOrderMsg = placeOrderMsg;
|
||||
this.placeOrderJson = placeOrderJson;
|
||||
this.memo = memo;
|
||||
this.qrCodeImageBase64 = qrCodeImageBase64;
|
||||
this.outRequestNo = outRequestNo;
|
||||
this.operTionRefund = operTionRefund;
|
||||
this.authCode = authCode;
|
||||
this.quitUrl = quitUrl;
|
||||
this.returnUrl = returnUrl;
|
||||
this.notifyUrl=notifyUrl;
|
||||
this.billType = billType;
|
||||
this.billDate = billDate;
|
||||
this.billDownloadUrl = billDownloadUrl;
|
||||
this.companyNo = companyNo;
|
||||
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "openId标识")
|
||||
private String openId;
|
||||
|
||||
@ApiModelProperty(value = "业务系统订单号")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long productOrderNo;
|
||||
|
||||
@ApiModelProperty(value = "交易系统订单号【对于三方来说:商户订单】")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long tradeOrderNo;
|
||||
|
||||
@ApiModelProperty(value = "支付渠道【支付宝、微信】")
|
||||
private String tradeChannel;
|
||||
|
||||
@ApiModelProperty(value = "交易单状态0待付款 1已支付 2已关闭)")
|
||||
private String tradeState;
|
||||
|
||||
@ApiModelProperty(value = "收款人姓名")
|
||||
private String payeeName;
|
||||
|
||||
@ApiModelProperty(value = "收款人账户ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long payeeId;
|
||||
|
||||
@ApiModelProperty(value = "付款人姓名")
|
||||
private String payerName;
|
||||
|
||||
@ApiModelProperty(value = "付款人Id")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long payerId;
|
||||
|
||||
@ApiModelProperty(value = "交易金额")
|
||||
private BigDecimal tradeAmount;
|
||||
|
||||
@ApiModelProperty(value = "退款总金额")
|
||||
private BigDecimal refund;
|
||||
|
||||
@ApiModelProperty(value = "是否有退款:0,1")
|
||||
private String isRefund;
|
||||
|
||||
@ApiModelProperty(value = "第三方交易返回编码【最终确认交易结果】")
|
||||
private String resultCode;
|
||||
|
||||
@ApiModelProperty(value = "第三方交易返回提示消息【最终确认交易信息】")
|
||||
private String resultMsg;
|
||||
|
||||
@ApiModelProperty(value = "第三方交易返回信息json【分析交易最终信息】")
|
||||
private String resultJson;
|
||||
|
||||
@ApiModelProperty(value = "统一下单返回编码")
|
||||
private String placeOrderCode;
|
||||
|
||||
@ApiModelProperty(value = "统一下单返回信息")
|
||||
private String placeOrderMsg;
|
||||
|
||||
@ApiModelProperty(value = "统一下单返回信息json【用于生产二维码、Android ios唤醒支付等】")
|
||||
private String placeOrderJson;
|
||||
|
||||
@ApiModelProperty(value = "备注【订单门店,桌台信息】")
|
||||
private String memo;
|
||||
|
||||
@ApiModelProperty(value = "二维码base64")
|
||||
private String qrCodeImageBase64;
|
||||
|
||||
@ApiModelProperty(value = "退款请求号")
|
||||
private String outRequestNo;
|
||||
|
||||
@ApiModelProperty(value = "本次退款金额")
|
||||
private BigDecimal operTionRefund;
|
||||
|
||||
@ApiModelProperty(value = "支付授权码")
|
||||
private String authCode;
|
||||
|
||||
@ApiModelProperty(value = "支付宝:HTTP/HTTPS开头字符串")
|
||||
private String quitUrl;
|
||||
|
||||
@ApiModelProperty(value = "支付宝:用户付款中途退出返回商户网站的地址")
|
||||
private String returnUrl;
|
||||
|
||||
@ApiModelProperty(value = "支付宝:异步通知地址")
|
||||
private String notifyUrl;
|
||||
|
||||
@ApiModelProperty(value = "账单类型,商户通过接口或商户经开放平台授权后其所属服务商通过接口可以获取以下账单类型")
|
||||
private String billType;
|
||||
|
||||
@ApiModelProperty(value = "账单时间:日账单格式为yyyy-MM-dd,最早可下载2016年1月1日开始的日账单。不支持下载当日账单,只能下载前一日24点前的账单数据(T+1)")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//get
|
||||
protected Date billDate;
|
||||
|
||||
@ApiModelProperty(value = "账单地址")
|
||||
private String billDownloadUrl;
|
||||
|
||||
@ApiModelProperty(value = "商户ID【系统内部识别使用】")
|
||||
private String companyNo;
|
||||
|
||||
@ApiModelProperty(value = "退款记录")
|
||||
private List<RefundRecordVO> refundRecordVOList;
|
||||
|
||||
@ApiModelProperty(value = "阿里APP周期扣款签约参数对象")
|
||||
private AliPeriodicVO aliPeriodicVO;
|
||||
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.analysis;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
public enum AnalysisEnum implements IBaseEnum {
|
||||
|
||||
TIME_BUILD_FAIL(53001, "查询日期转换失败"),
|
||||
ANALYSIS_CUSTOMER_CITY(53002,"统计分析:保单合同关联城市异常"),
|
||||
|
||||
ANALYSIS_CUSTOMER_ACTIVE(53002,"统计分析:客户活跃度统计异常"),
|
||||
|
||||
ANALYSIS_CUSTOMER_INSTANCE(53003,"统计分析:客户合同金额统计异常"),
|
||||
ANALYSIS_CUSTOMER_SEX(53004, "统计分析:投保人性别统计异常"),
|
||||
|
||||
ANALYSIS_CUSTOMER_INSURANCE_TYPE(53006, "统计分析:投保分类统计异常"),
|
||||
|
||||
ANALYSIS_PV_UV(53007, "统计分析:PV_UV统计分析失败"),
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String msg;
|
||||
|
||||
AnalysisEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.basic;
|
||||
|
||||
/**
|
||||
* @ClassName BasicEnum.java
|
||||
* @Description 基础枚举
|
||||
*/
|
||||
public enum BaseEnum implements IBaseEnum {
|
||||
|
||||
SUCCEED(200,"操作成功"),
|
||||
SYSYTEM_FAIL(1503,"系统运行异常"),
|
||||
REMOTE_FAIL(1504,"系统远程调用异常"),
|
||||
VALID_EXCEPTION(1505,"参数校验异常");
|
||||
|
||||
public Integer code;
|
||||
public String msg;
|
||||
|
||||
BaseEnum(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.basic;
|
||||
|
||||
/**
|
||||
* @Description:枚举接口
|
||||
*/
|
||||
public interface IBaseEnum {
|
||||
|
||||
//编码
|
||||
Integer getCode();
|
||||
|
||||
//信息
|
||||
String getMsg();
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.dict;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @Description:数字字典枚举
|
||||
*/
|
||||
public enum DataDictEnum implements IBaseEnum {
|
||||
PAGE_FAIL(25001, "查询数据字典列表失败"),
|
||||
SAVE_FAIL(25002, "保存字典数据失败"),
|
||||
UPDATE_FAIL(25003, "修改字典数据失败"),
|
||||
FIND_DATADICTVO_DATAKEY(25004, "据dataKey获取DataDictVO失败"),
|
||||
FIND_DATADICTVO_PARENTKEY(25005, "获取ParentKey下的数据失败"),
|
||||
FIND_PARENTKEY_ALL(25006, "根据parentKey查询失败"),
|
||||
FIND_DATAKEY_ALL(25007, "根据dataKey查询失败"),
|
||||
CHECK_FALL(25008, "检查数字字典重复性异常");
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
private String msg;
|
||||
|
||||
DataDictEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.dict;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName PlacesEnum.java
|
||||
* @Description 地区地域
|
||||
*/
|
||||
public enum PlacesEnum implements IBaseEnum {
|
||||
LIST_FAIL(34001, "查询省市区失败");
|
||||
|
||||
private Integer code;
|
||||
private String msg;
|
||||
|
||||
PlacesEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.file;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName FileEnum.java
|
||||
* @Description 文件上传
|
||||
*/
|
||||
public enum FileEnum implements IBaseEnum {
|
||||
|
||||
DOWNLOAD_FAIL(21001, "下载文件失败"),
|
||||
UPLOAD_FAIL(21002, "上传文件失败"),
|
||||
SELECT_FILE_BUSINESSID_FAIL(21003, "查询业务对应附件失败"),
|
||||
DELETE_FILE_BUSINESSID_FAIL(21004, "删除业务对应附件失败"),
|
||||
PAGE_FAIL(21005, "查询附件列表失败"),
|
||||
DELETE_FAIL(21006, "删除附件失败"),
|
||||
SELECT_BUSUBBESSID_FAIL(21007, "查询附件所有业务ID失败"),
|
||||
BIND_FAIL(21008, "业务绑定文件失败"),
|
||||
FILE_NAME_NOTFOUND(21009, "上传文件名称为空"),
|
||||
BUCKET_NAME_NULL(21010, "存储空间名称为空"),
|
||||
STORE_FLAG_NULL(21011, "存储标识为空"),
|
||||
FILE_PREFIX_NOT_FOUND(21012, "文件路径前缀标识没找到"),
|
||||
FILE_OPERATE(21013, "操作文件数据失败"),
|
||||
FILE_DATA_LOSE(21014, "文件操作关键数据异常"),
|
||||
INIT_UPLOAD_FAIL(21015, "分片上传文件初始化失败"),
|
||||
UPLOAD_PART_FAIL(21016, "分片上传文件失败"),
|
||||
COMPLETE_PART_FAIL(21017, "分片上传合并文件失败"),
|
||||
CLEAR_FILE_TASK_FAIL(21018, "定时清理失败"),
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
private String msg;
|
||||
|
||||
FileEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.file;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName FilePartEnum.java
|
||||
* @Description 文件分片枚举
|
||||
*/
|
||||
|
||||
public enum FilePartEnum implements IBaseEnum {
|
||||
|
||||
PAGE_FAIL(99001, "文件分片查询列表失败"),
|
||||
SAVE_FAIL(99002, "文件分片保存失败"),
|
||||
UPDATE_FAIL(99003, "文件分片修改失败"),
|
||||
DEL_FAIL(99004, "文件分片删除失败"),
|
||||
LIST_FAIL(99005, "文件分片查询失败");
|
||||
|
||||
private Integer code;
|
||||
private String msg;
|
||||
|
||||
FilePartEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.log;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName LogBusinessEnum.java
|
||||
* @Description 数据埋点枚举
|
||||
*/
|
||||
public enum LogBusinessEnum implements IBaseEnum {
|
||||
|
||||
PAGE_FAIL(29001, "查询数据字典列表失败"),
|
||||
SAVE_FAIL(29002,"日志保存失败");
|
||||
|
||||
private Integer code;
|
||||
private String msg;
|
||||
|
||||
LogBusinessEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.relations;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* RelationEnum
|
||||
*
|
||||
* @author: wgl
|
||||
* @describe: 关系枚举类
|
||||
* @date: 2022/12/28 10:10
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum RelationEnum{
|
||||
SELF("0","自己"),
|
||||
SPAUSE("1","配偶"),
|
||||
PARENTS("2","父母"),
|
||||
CHILDREN("3","子女")
|
||||
;
|
||||
private String relation;
|
||||
|
||||
private String des;
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName AuthChannelEnum.java
|
||||
* @Description 三方授权
|
||||
*/
|
||||
public enum AuthChannelEnum implements IBaseEnum {
|
||||
|
||||
SUCCEED(200,"操作成功"),
|
||||
FAIL(1000,"操作失败"),
|
||||
PAGE_FAIL(74001, "查询公司表列表失败"),
|
||||
SAVE_FAIL(74002, "保存公司表失败"),
|
||||
UPDATE_FAIL(74003, "修改公司表失败"),
|
||||
DEL_FAIL(74004, "删除公司表失败"),
|
||||
LIST_FAIL(74005, "查询公司表失败"),
|
||||
CREATE_POST_NO_FAIL(74006, "创建公司编号失败")
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String msg;
|
||||
|
||||
AuthChannelEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName AuthEnum.java
|
||||
* @Description 认证枚举
|
||||
*/
|
||||
public enum AuthEnum implements IBaseEnum {
|
||||
|
||||
SUCCEED(200,"操作成功"),
|
||||
FAIL(1000,"操作失败"),
|
||||
AUTH_FAIL(22001, "鉴权失败"),
|
||||
HSOT_FAIL(22002, "host校验失败"),
|
||||
NEED_LOGIN(22003, "请先登陆"),
|
||||
LOGIN_FAIL(22004, "登陆失败"),
|
||||
CODE_FAIL(22005, "验证码过期");
|
||||
|
||||
private Integer code;
|
||||
private String msg;
|
||||
|
||||
AuthEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName PostEnum.java
|
||||
* @Description 公司表枚举
|
||||
*/
|
||||
|
||||
public enum CompanyEnum implements IBaseEnum {
|
||||
|
||||
SUCCEED(200,"操作成功"),
|
||||
FAIL(1000,"操作失败"),
|
||||
PAGE_FAIL(74001, "查询公司表列表失败"),
|
||||
SAVE_FAIL(74002, "保存公司表失败"),
|
||||
UPDATE_FAIL(74003, "修改公司表失败"),
|
||||
DEL_FAIL(74004, "删除公司表失败"),
|
||||
LIST_FAIL(74005, "查询公司表失败"),
|
||||
CREATE_POST_NO_FAIL(74006, "创建公司编号失败")
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String msg;
|
||||
|
||||
CompanyEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName UserEnum.java
|
||||
* @Description 用客户枚举
|
||||
*/
|
||||
|
||||
public enum CustomerEnum implements IBaseEnum {
|
||||
|
||||
SUCCEED(200,"操作成功"),
|
||||
FAIL(1000,"操作失败"),
|
||||
PAGE_FAIL(58001, "分页查询用客户列表失败"),
|
||||
FIND_FAIL(58002, "查询用客户失败"),
|
||||
SAVE_FAIL(58003, "保存用客户失败"),
|
||||
UPDATE_FAIL(58004, "修改用客户失败"),
|
||||
DEL_FAIL(58005, "删除用客户失败"),
|
||||
LIST_FAIL(58006, "查询用客户失败"),
|
||||
RESET_PASSWORD_FAIL(58007,"充值密码失败")
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String msg;
|
||||
|
||||
CustomerEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package com.itheima.sfbx.framework.commons.enums.security;
|
||||
|
||||
import com.itheima.sfbx.framework.commons.enums.basic.IBaseEnum;
|
||||
|
||||
/**
|
||||
* @ClassName DeptEnum.java
|
||||
* @Description 部门表枚举
|
||||
*/
|
||||
|
||||
public enum DeptEnum implements IBaseEnum {
|
||||
|
||||
SUCCEED(200,"操作成功"),
|
||||
FAIL(1000,"操作失败"),
|
||||
PAGE_FAIL(53001, "查询部门表列表失败"),
|
||||
SAVE_FAIL(53002, "保存部门表失败"),
|
||||
UPDATE_FAIL(53003, "修改部门表失败"),
|
||||
DEL_FAIL(53004, "删除部门表失败"),
|
||||
LIST_FAIL(53005, "查询部门表失败"),
|
||||
TREE_FAIL(53006, "查询部门树失败"),
|
||||
CREATE_DEPT_NO_FAIL(53007, "创建部门编号失败"),
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String msg;
|
||||
|
||||
DeptEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user