Merge remote-tracking branch 'origin/dev-7.1.6' into dev-7.1.6

# Conflicts:
#	kernel-d-ds-container/ds-container-api/src/main/java/cn/stylefeng/roses/kernel/dsctn/api/pojo/request/DatabaseInfoRequest.java
#	kernel-d-file/file-api/src/main/java/cn/stylefeng/roses/kernel/file/api/pojo/request/SysFileInfoRequest.java
#	kernel-s-dict/dict-business/src/main/java/cn/stylefeng/roses/kernel/dict/modular/pojo/request/DictTypeRequest.java
pull/26/MERGE
lipengteng 2022-02-16 10:29:16 +08:00
commit cab79e4a1b
45 changed files with 389 additions and 25 deletions

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.rule.pojo.dict;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
/**
@ -44,16 +45,19 @@ public class SimpleDict {
/**
* id
*/
@ChineseDescription("id")
private Long id;
/**
*
*/
@ChineseDescription("名称")
private String name;
/**
*
*/
@ChineseDescription("编码")
private String code;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.rule.tree.ztree;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.constants.TreeConstants;
import cn.stylefeng.roses.kernel.rule.tree.factory.base.AbstractTreeNode;
import lombok.EqualsAndHashCode;
@ -48,11 +49,13 @@ public class ZTreeNode implements AbstractTreeNode<ZTreeNode> {
*/
@Getter
@Setter
@ChineseDescription("节点id")
private Long id;
/**
* id
*/
@ChineseDescription("父节点id")
private Long pId;
/**
@ -60,6 +63,7 @@ public class ZTreeNode implements AbstractTreeNode<ZTreeNode> {
*/
@Getter
@Setter
@ChineseDescription("节点名称")
private String name;
/**
@ -67,6 +71,7 @@ public class ZTreeNode implements AbstractTreeNode<ZTreeNode> {
*/
@Getter
@Setter
@ChineseDescription("是否打开节点")
private Boolean open;
/**
@ -74,6 +79,7 @@ public class ZTreeNode implements AbstractTreeNode<ZTreeNode> {
*/
@Getter
@Setter
@ChineseDescription("是否被选中")
private Boolean checked;
/**
@ -81,6 +87,7 @@ public class ZTreeNode implements AbstractTreeNode<ZTreeNode> {
*/
@Getter
@Setter
@ChineseDescription("节点图标")
private String iconSkin;
/**
@ -88,6 +95,7 @@ public class ZTreeNode implements AbstractTreeNode<ZTreeNode> {
*/
@Getter
@Setter
@ChineseDescription("子节点集合")
private List<ZTreeNode> children;
/**

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.config.api.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -18,21 +19,25 @@ public class ConfigInitItem {
/**
*
*/
@ChineseDescription("配置中文名称")
private String configName;
/**
*
*/
@ChineseDescription("配置编码")
private String configCode;
/**
*
*/
@ChineseDescription("配置初始化值")
private String configValue;
/**
*
*/
@ChineseDescription("配置的描述")
private String configDescription;
}

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.config.api.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.util.Map;
@ -18,6 +19,7 @@ public class ConfigInitRequest {
* <p>
* keyvalue
*/
@ChineseDescription("系统配置集合")
private Map<String, String> sysConfigs;
}

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.config.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -46,54 +47,63 @@ public class SysConfig extends BaseEntity {
*
*/
@TableId(value = "config_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键id")
private Long configId;
/**
*
*/
@TableField("config_name")
@ChineseDescription("名称")
private String configName;
/**
*
*/
@TableField("config_code")
@ChineseDescription("编码")
private String configCode;
/**
*
*/
@TableField("config_value")
@ChineseDescription("属性值")
private String configValue;
/**
* Y-N-
*/
@TableField("sys_flag")
@ChineseDescription("是否是系统参数Y-是N-否")
private String sysFlag;
/**
*
*/
@TableField("remark")
@ChineseDescription("备注")
private String remark;
/**
* 1-2
*/
@TableField("status_flag")
@ChineseDescription("状态1-正常2停用")
private Integer statusFlag;
/**
*
*/
@TableField("group_code")
@ChineseDescription("常量所属分类的编码")
private String groupCode;
/**
* Y-N-
*/
@TableField(value = "del_flag", fill = FieldFill.INSERT)
@ChineseDescription("是否删除Y-被删除N-未删除")
private String delFlag;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.config.modular.param;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.validator.api.validators.flag.FlagValue;
import lombok.Data;
@ -46,24 +47,28 @@ public class SysConfigParam extends BaseRequest {
*
*/
@NotNull(message = "configId不能为空", groups = {edit.class, delete.class, detail.class})
@ChineseDescription("主键")
private Long configId;
/**
*
*/
@NotBlank(message = "名称不能为空", groups = {add.class, edit.class})
@ChineseDescription("名称")
private String configName;
/**
*
*/
@NotBlank(message = "编码不能为空", groups = {add.class, edit.class})
@ChineseDescription("编码")
private String configCode;
/**
*
*/
@NotBlank(message = "配置值不能为空", groups = {add.class, edit.class})
@ChineseDescription("配置值")
private String configValue;
/**
@ -71,22 +76,26 @@ public class SysConfigParam extends BaseRequest {
*/
@NotBlank(message = "是否是系统参数不能为空", groups = {add.class, edit.class})
@FlagValue(message = "是否是系统参数格式错误正确格式应该Y或者N", groups = {add.class, edit.class})
@ChineseDescription("是否系统参数")
private String sysFlag;
/**
*
*/
@ChineseDescription("备注")
private String remark;
/**
* 1-2
*/
@ChineseDescription("状态")
private Integer statusFlag;
/**
*
*/
@NotBlank(message = "量所属分类的编码不能为空", groups = {add.class, edit.class})
@ChineseDescription("常量所属分类的编码")
private String groupCode;
}

View File

@ -97,7 +97,7 @@ public class DatabaseInfoRequest extends BaseRequest {
/**
* schemaNameschema
*/
@ChineseDescription("数据库schemaName注意每种数据库的schema意义不同")
@ChineseDescription("数据库schemaName")
private String schemaName;
/**
@ -109,7 +109,7 @@ public class DatabaseInfoRequest extends BaseRequest {
/**
*
*/
@ChineseDescription("备注,摘要")
@ChineseDescription("备注")
private String remarks;
}

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.dsctn.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -46,60 +47,70 @@ public class DatabaseInfo extends BaseEntity {
* id
*/
@TableId(value = "db_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键id")
private Long dbId;
/**
*
*/
@TableField("db_name")
@ChineseDescription("数据库名称(英文名称)")
private String dbName;
/**
* jdbc
*/
@TableField("jdbc_driver")
@ChineseDescription("jdbc的驱动类型")
private String jdbcDriver;
/**
* jdbcurl
*/
@TableField("jdbc_url")
@ChineseDescription("jdbc的url")
private String jdbcUrl;
/**
*
*/
@TableField("username")
@ChineseDescription("数据库连接的账号")
private String username;
/**
*
*/
@TableField("password")
@ChineseDescription("数据库连接密码")
private String password;
/**
* schemaschema
*/
@TableField("schema_name")
@ChineseDescription("数据库的schema名称")
private String schemaName;
/**
* 1-2-
*/
@TableField("status_flag")
@ChineseDescription("状态标识1-正常2-无法连接")
private Integer statusFlag;
/**
*
*/
@TableField("error_description")
@ChineseDescription("无法连接原因")
private String errorDescription;
/**
*
*/
@TableField("remarks")
@ChineseDescription("备注")
private String remarks;
/**

View File

@ -49,7 +49,7 @@ public class SysFileInfoRequest extends BaseRequest {
* ID
*/
@NotNull(message = "fileId不能为空", groups = {versionBack.class, detail.class})
@ChineseDescription("文件ID")
@ChineseDescription("文件id")
private Long fileId;
/**
@ -69,19 +69,19 @@ public class SysFileInfoRequest extends BaseRequest {
* 访
*/
@NotBlank(message = "是否是机密文件不能为空", groups = {add.class, edit.class})
@ChineseDescription("是否为机密文件")
@ChineseDescription("是否为机密文件Y-是机密N-不是机密")
private String secretFlag;
/**
* .txt
*/
@ChineseDescription("文件名称(上传时候的文件全名")
@ChineseDescription("文件名称(上传时候的文件全名,例如:开发文档.txt")
private String fileOriginName;
/**
*
*/
@ChineseDescription("其他文件形式参")
@ChineseDescription("其他文件形式")
private String token;
/**
@ -94,7 +94,7 @@ public class SysFileInfoRequest extends BaseRequest {
*
*/
@NotBlank(message = "fileBucket不能为空", groups = {previewByObjectName.class})
@ChineseDescription("文件仓库(文件夹)")
@ChineseDescription("文件仓库(文件夹)")
private String fileBucket;
/**
@ -106,7 +106,7 @@ public class SysFileInfoRequest extends BaseRequest {
/**
* kb
*/
@ChineseDescription("文件大小kb")
@ChineseDescription("文件大小")
private Long fileSizeKb;
/**

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.file.api.pojo.response;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.io.Serializable;
@ -43,6 +44,7 @@ public class SysFileInfoListResponse implements Serializable {
/**
* id
*/
@ChineseDescription("主键id")
private Long fileId;
/**
@ -52,83 +54,99 @@ public class SysFileInfoListResponse implements Serializable {
* <p>
* codeid
*/
@ChineseDescription("文件编码")
private Long fileCode;
/**
*
*/
@ChineseDescription("文件仓库(文件夹)")
private String fileBucket;
/**
* bucketid+.
*/
@ChineseDescription("存储到bucket中的名称主键id+.后缀")
private String fileObjectName;
/**
*
*/
@ChineseDescription("是否为机密文件")
private String secretFlag;
/**
* Code
*/
@ChineseDescription("文件应用Code名称")
private String fileAppCodeName;
/**
*
*/
@ChineseDescription("文件名称(上传时候的文件名)")
private String fileOriginName;
/**
* 1-2-3-minio4-
*/
@ChineseDescription("存储位置1-阿里云2-腾讯云3-minio4-本地")
private Integer fileLocation;
/**
*
*/
@ChineseDescription("文件后缀")
private String fileSuffix;
/**
*
*/
@ChineseDescription("文件大小信息,计算后")
private String fileSizeInfo;
/**
*
*/
@ChineseDescription("文件版本")
private Integer fileVersion;
/**
*
*/
@ChineseDescription("创建人")
private Long createAccountId;
/**
* id
*/
@ChineseDescription("创建人部门id")
private Long createDeptId;
/**
*
*/
@ChineseDescription("创建人姓名")
private String createUserName;
/**
*
*/
@ChineseDescription("创建时间")
private Date createTime;
/**
*
*/
@ChineseDescription("创建人姓名")
private String realName;
/**
* 访url
*/
@ChineseDescription("文件访问的url")
private String fileUrl;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.file.api.pojo.response;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
/**
@ -38,6 +39,7 @@ public class SysFileInfoResponse {
/**
* id
*/
@ChineseDescription("主键id")
private Long fileId;
/**
@ -47,71 +49,85 @@ public class SysFileInfoResponse {
* <p>
* codeid
*/
@ChineseDescription("文件编码")
private Long fileCode;
/**
*
*/
@ChineseDescription("文件版本")
private Integer fileVersion;
/**
* 0-,1-
*/
@ChineseDescription("文件状态")
private String fileStatus;
/**
* .txt
*/
@ChineseDescription("问价后缀")
private String fileSuffix;
/**
* kb
*/
@ChineseDescription("文件大小kb")
private Long fileSizeKb;
/**
*
*/
@ChineseDescription("文件大小信息,计算后")
private String fileSizeInfo;
/**
*
*/
@ChineseDescription("是否为机密文件")
private String secretFlag;
/**
*
*/
@ChineseDescription("文件的字节")
private byte[] fileBytes;
/**
* bucketid+.
*/
@ChineseDescription("存储到bucket中的名称主键id+.后缀")
private String fileObjectName;
/**
* 1-2-3-minio4-
*/
@ChineseDescription("文件存储位置1-阿里云2-腾讯云3-minio4-本地")
private Integer fileLocation;
/**
*
*/
@ChineseDescription("文件仓库")
private String fileBucket;
/**
*
*/
@ChineseDescription("文件名称(上传时候的文件名)")
private String fileOriginName;
/**
*
*/
@ChineseDescription("存储路径")
private String filePath;
/**
* 访url访url
*/
@ChineseDescription("文件访问路径")
private String fileUrl;
}

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.file.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -46,6 +47,7 @@ public class SysFileInfo extends BaseEntity {
* id
*/
@TableId(value = "file_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键id")
private Long fileId;
/**
@ -54,78 +56,91 @@ public class SysFileInfo extends BaseEntity {
*
*/
@TableField("file_code")
@ChineseDescription("文件编码")
private Long fileCode;
/**
* 1
*/
@TableField("file_version")
@ChineseDescription("文件版本")
private Integer fileVersion;
/**
* 0-1-
*/
@TableField("file_status")
@ChineseDescription("当前状态0-历史版1-最新版")
private String fileStatus;
/**
* 1-2-3-minio4-
*/
@TableField("file_location")
@ChineseDescription("文件存储位置")
private Integer fileLocation;
/**
*
*/
@TableField("file_bucket")
@ChineseDescription("文件仓库(文件夹)")
private String fileBucket;
/**
*
*/
@TableField("file_origin_name")
@ChineseDescription("文件名称(上传时候的文件全名)")
private String fileOriginName;
/**
* .txt
*/
@TableField("file_suffix")
@ChineseDescription("文件后缀")
private String fileSuffix;
/**
* kb
*/
@TableField("file_size_kb")
@ChineseDescription("文件大小")
private Long fileSizeKb;
/**
*
*/
@TableField("file_size_info")
@ChineseDescription("文件大小信息,计算后的")
private String fileSizeInfo;
/**
* bucketid+.
*/
@TableField("file_object_name")
@ChineseDescription("存储到bucket中的名称主键id+.后缀")
private String fileObjectName;
/**
*
*/
@TableField("file_path")
@ChineseDescription("存储路径")
private String filePath;
/**
*
*/
@TableField("secret_flag")
@ChineseDescription("是否为机密文件")
private String secretFlag;
/**
* Y-N-
*/
@TableField(value = "del_flag", fill = FieldFill.INSERT)
@ChineseDescription("是否删除")
private String delFlag;
}

View File

@ -61,6 +61,7 @@ public class TranslationRequest extends BaseRequest {
/**
*
*/
@ChineseDescription("多语言条例名称")
@NotBlank(message = "tranName不能为空", groups = {add.class, edit.class})
@ChineseDescription("多语言条例名称")
private String tranName;
@ -68,6 +69,7 @@ public class TranslationRequest extends BaseRequest {
/**
*
*/
@ChineseDescription("语种字典")
@NotBlank(message = "tranLanguageCode不能为空", groups = {add.class, edit.class, changeUserLanguage.class, deleteTranLanguage.class})
@ChineseDescription("语种字典")
private String tranLanguageCode;
@ -75,6 +77,7 @@ public class TranslationRequest extends BaseRequest {
/**
*
*/
@ChineseDescription("翻译的值")
@NotBlank(message = "tranValue不能为空", groups = {add.class, edit.class})
@ChineseDescription("翻译的值")
private String tranValue;
@ -82,6 +85,7 @@ public class TranslationRequest extends BaseRequest {
/**
* id
*/
@ChineseDescription("字典id")
@NotNull(message = "字典id", groups = {deleteTranLanguage.class})
@ChineseDescription("字典id用在删除语种")
private Long dictId;

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.i18n.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
@ -49,30 +50,35 @@ public class Translation extends BaseEntity {
* id
*/
@TableId(value = "tran_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键id")
private Long tranId;
/**
*
*/
@TableField("tran_code")
@ChineseDescription("编码")
private String tranCode;
/**
*
*/
@TableField("tran_name")
@ChineseDescription("多语言条例名称")
private String tranName;
/**
*
*/
@TableField("tran_language_code")
@ChineseDescription("语种字典")
private String tranLanguageCode;
/**
*
*/
@TableField("tran_value")
@ChineseDescription("翻译的值")
private String tranValue;
}

View File

@ -25,7 +25,7 @@
</dependency>
<!--auth鉴权模块的api-->
<!--QuickTranslateUtil需要获取当前用户的多语言类型属性-->
<!--QuickTranslateUtil需要获取当前用户的多语`言类型属性-->
<dependency>
<groupId>cn.stylefeng.roses</groupId>
<artifactId>auth-api</artifactId>

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.log.api.pojo.loginlog;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -20,51 +21,61 @@ public class SysLoginLogDto extends BaseRequest {
/**
* id
*/
@ChineseDescription("主键id")
private Long llgId;
/**
*
*/
@ChineseDescription("日志名称")
private String llgName;
/**
*
*/
@ChineseDescription("是否执行成功")
private String llgSucceed;
/**
*
*/
@ChineseDescription("具体消息")
private String llgMessage;
/**
* ip
*/
@ChineseDescription("登录ip")
private String llgIpAddress;
/**
* id
*/
@ChineseDescription("用户id")
private Long userId;
/**
*
*/
@ChineseDescription("登录姓名")
private String userName;
/**
*
*/
@ChineseDescription("创建时间")
private Date createTime;
/**
*
*/
@ChineseDescription("开始时间")
private String beginTime;
/**
*
*/
@ChineseDescription("结束时间")
private String endTime;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.log.api.pojo.loginlog;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -45,46 +46,55 @@ public class SysLoginLogRequest extends BaseRequest {
* id
*/
@NotNull(message = "llgId不能为空", groups = {detail.class})
@ChineseDescription("主鍵id")
private Long llgId;
/**
*
*/
@ChineseDescription("日志名称")
private String llgName;
/**
*
*/
@ChineseDescription("是否执行成功")
private String llgSucceed;
/**
*
*/
@ChineseDescription("具体消息")
private String llgMessage;
/**
* ip
*/
@ChineseDescription("登录ip")
private String llgIpAddress;
/**
* id
*/
@ChineseDescription("用户id")
private Long userId;
/**
*
*
*/
@ChineseDescription("创建时间")
private Date createTime;
/**
*
*/
@ChineseDescription("开始时间")
private String beginTime;
/**
*
*/
@ChineseDescription("结束时间")
private String endTime;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.log.api.pojo.manage;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -45,49 +46,58 @@ public class LogManagerRequest extends BaseRequest {
* id
*/
@NotNull(message = "日志id不能为空", groups = {detail.class})
@ChineseDescription("单条日志id")
private Long logId;
/**
*
*/
@NotBlank(message = "起始时间不能为空", groups = {delete.class})
@ChineseDescription("查询的起始时间")
private String beginDate;
/**
*
*/
@ChineseDescription("查询的结束时间")
@NotBlank(message = "结束时间不能为空", groups = {delete.class})
private String endDate;
/**
*
*/
@ChineseDescription("日志名称")
private String logName;
/**
* spring.application.name
*/
@NotBlank(message = "服务名称不能为空", groups = {delete.class})
@ChineseDescription("服务名称")
private String appName;
/**
* ip
*/
@ChineseDescription("当前服务器ip")
private String serverIp;
/**
* id
*/
@ChineseDescription("客户端请求的用户id")
private Long userId;
/**
* ip
*/
@ChineseDescription("客户端的ip")
private String clientIp;
/**
* url
*/
@ChineseDescription("当前用户的请求url")
private String requestUrl;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.log.api.pojo.record;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.util.Date;
@ -40,41 +41,49 @@ public class LogRecordDTO {
/**
* id
*/
@ChineseDescription("日志id")
private Long logId;
/**
*
*/
@ChineseDescription("日志名称")
private String logName;
/**
*
*/
@ChineseDescription("日志记录内容")
private Object logContent;
/**
* spring.application.name
*/
@ChineseDescription("服务名称")
private String appName;
/**
* http
*/
@ChineseDescription("http或方法的请求参数体")
private String requestParams;
/**
* http
*/
@ChineseDescription("http或方法的请求结果")
private String requestResult;
/**
*
*/
@ChineseDescription("操作发生的时间")
private Date dateTime;
/**
* ip
*/
@ChineseDescription("当前服务器的ip")
private String serverIp;
/**
@ -82,6 +91,7 @@ public class LogRecordDTO {
* <p>
* http
*/
@ChineseDescription("客户端请求的token")
private String token;
/**
@ -89,6 +99,7 @@ public class LogRecordDTO {
* <p>
* http
*/
@ChineseDescription("客户端请求的用户id")
private Long userId;
/**
@ -96,6 +107,7 @@ public class LogRecordDTO {
* <p>
* http
*/
@ChineseDescription("客户端的ip")
private String clientIp;
/**
@ -103,6 +115,7 @@ public class LogRecordDTO {
* <p>
* http
*/
@ChineseDescription("当前用户请求的requestUrl")
private String requestUrl;
/**
@ -110,6 +123,7 @@ public class LogRecordDTO {
* <p>
* http
*/
@ChineseDescription("请求方式")
private String httpMethod;
/**
@ -117,6 +131,7 @@ public class LogRecordDTO {
* <p>
* http
*/
@ChineseDescription("浏览器")
private String clientBrowser;
/**
@ -124,11 +139,13 @@ public class LogRecordDTO {
* <p>
* http
*/
@ChineseDescription("操作系统")
private String clientOs;
/**
*
*/
@ChineseDescription("创建时间")
private Date createTime;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.system.modular.loginlog.entity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
@ -46,42 +47,49 @@ public class SysLoginLog {
* id
*/
@TableId("llg_id")
@ChineseDescription("主键id")
private Long llgId;
/**
*
*/
@TableField("llg_name")
@ChineseDescription("日志名称")
private String llgName;
/**
*
*/
@TableField("llg_succeed")
@ChineseDescription("是否执行成功")
private String llgSucceed;
/**
*
*/
@TableField("llg_message")
@ChineseDescription("具体消息")
private String llgMessage;
/**
* ip
*/
@TableField("llg_ip_address")
@ChineseDescription("登录ip")
private String llgIpAddress;
/**
* id
*/
@TableField(value = "user_id")
@ChineseDescription("用户id")
private Long userId;
/**
*
*/
@TableField(value = "create_time", fill = FieldFill.INSERT)
@ChineseDescription("创建时间")
private Date createTime;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.scanner.api.pojo.resource;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -45,11 +46,13 @@ public class ReportResourceParam extends BaseRequest {
* <p>
*
*/
@ChineseDescription("项目编码")
private String projectCode;
/**
*
*/
@ChineseDescription("资源集合")
private Map<String, Map<String, ResourceDefinition>> resourceDefinitions;
public ReportResourceParam(String projectCode, Map<String, Map<String, ResourceDefinition>> resourceDefinitions) {

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.security.api.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -16,26 +17,31 @@ public class DragCaptchaImageDTO {
/**
* key
*/
@ChineseDescription("本次验证码缓存的key")
private String key;
/**
* base64
*/
@ChineseDescription("剪裁后的源图片base64编码")
private String srcImage;
/**
* base64
*/
@ChineseDescription("剪裁的小拼图图片base64编码")
private String cutImage;
/**
* x
*/
@ChineseDescription("x轴坐标")
private Integer locationX;
/**
* y
*/
@ChineseDescription("y轴坐标")
private Integer locationY;
public DragCaptchaImageDTO(String srcImage, String cutImage, int locationX, int locationY) {

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.sms.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
@ -53,42 +54,49 @@ public class SysSms extends BaseEntity implements Serializable {
*
*/
@TableId(value = "sms_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键id")
private Long smsId;
/**
*
*/
@TableField("phone_number")
@ChineseDescription("手机号")
private String phoneNumber;
/**
*
*/
@TableField("validate_code")
@ChineseDescription("短信验证码")
private String validateCode;
/**
*
*/
@TableField("template_code")
@ChineseDescription("短信模板编号")
private String templateCode;
/**
* id
*/
@TableField("biz_id")
@ChineseDescription("业务id")
private String bizId;
/**
* 1-2-3-4-
*/
@TableField("status_flag")
@ChineseDescription("发送状态1-未发送2-发送成功3-发送失败4-失效")
private Integer statusFlag;
/**
* 1-app2-pc3-
*/
@TableField("source")
@ChineseDescription("来源1-app2-pc3-其他")
private Integer source;
/**
@ -96,6 +104,7 @@ public class SysSms extends BaseEntity implements Serializable {
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField("invalid_time")
@ChineseDescription("短信失效截止时间")
private Date invalidTime;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.sms.modular.param;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -43,41 +44,49 @@ public class SysSmsInfoParam extends BaseRequest {
/**
*
*/
@ChineseDescription("主键id")
private Long smsId;
/**
*
*/
@ChineseDescription("手机号")
private String phone;
/**
*
*/
@ChineseDescription("短信验证码")
private String validateCode;
/**
*
*/
@ChineseDescription("短信模板编号")
private String templateCode;
/**
* id
*/
@ChineseDescription("业务id")
private String bizId;
/**
* 1-2-3-4-
*/
@ChineseDescription("发送状态")
private Integer statusFlag;
/**
* 1-app2-pc3-
*/
@ChineseDescription("来源")
private Integer source;
/**
*
*/
@ChineseDescription("短信失效戒截止时间")
private Date invalidTime;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.sms.modular.param;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.sms.modular.enums.SmsSendSourceEnum;
import cn.stylefeng.roses.kernel.sms.modular.enums.SmsTypeEnum;
import lombok.Data;
@ -44,37 +45,44 @@ public class SysSmsSendParam {
*
*/
@NotBlank(message = "手机号码为空")
@ChineseDescription("手机号")
private String phone;
/**
*
*/
@NotBlank(message = "模板号为空")
@ChineseDescription("模板号")
private String templateCode;
/**
* key
*/
@ChineseDescription("缓存key")
private String verKey;
/**
*
*/
@ChineseDescription("图形验证码")
private String verCode;
/**
*
*/
@ChineseDescription("模板中的参数")
private Map<String, Object> params;
/**
*
*/
@ChineseDescription("发送源")
private SmsSendSourceEnum smsSendSourceEnum = SmsSendSourceEnum.PC;
/**
* 12
*/
@ChineseDescription("消息类型1-验证码2-消息,默认验证码")
private SmsTypeEnum smsTypeEnum = SmsTypeEnum.SMS;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.sms.modular.param;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.sms.modular.enums.SmsSendSourceEnum;
import lombok.Data;
@ -42,23 +43,27 @@ public class SysSmsVerifyParam {
*
*/
@NotBlank(message = "手机号不能为空")
@ChineseDescription("手机号")
private String phone;
/**
*
*/
@NotBlank(message = "验证码不能为空")
@ChineseDescription("验证码")
private String code;
/**
*
*/
@NotBlank(message = "模板号不能为空")
@ChineseDescription("模板号")
private String templateCode;
/**
*
*/
@ChineseDescription("来源")
private SmsSendSourceEnum smsSendSourceEnum = SmsSendSourceEnum.PC;
}

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.timer.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -44,48 +45,56 @@ public class SysTimers extends BaseEntity {
* id
*/
@TableId(value = "timer_id", type = IdType.ASSIGN_ID)
@ChineseDescription("定时器id")
private Long timerId;
/**
*
*/
@TableField("timer_name")
@ChineseDescription("任务名称")
private String timerName;
/**
* classTimerAction
*/
@TableField("action_class")
@ChineseDescription("执行任务的class的类名")
private String actionClass;
/**
*
*/
@TableField("cron")
@ChineseDescription("定时任务表达式")
private String cron;
/**
*
*/
@TableField("params")
@ChineseDescription("参数")
private String params;
/**
* 1-2-
*/
@TableField("job_status")
@ChineseDescription("状态1-运行2-停止")
private Integer jobStatus;
/**
*
*/
@TableField("remark")
@ChineseDescription("备注信息")
private String remark;
/**
* Y-N-
*/
@TableField(value = "del_flag", fill = FieldFill.INSERT)
@ChineseDescription("是否删除")
private String delFlag;
}

View File

@ -27,6 +27,7 @@ package cn.stylefeng.roses.kernel.monitor.system;
import cn.hutool.core.net.NetUtil;
import cn.hutool.core.util.NumberUtil;
import cn.stylefeng.roses.kernel.monitor.api.pojo.*;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.util.IpInfoUtils;
import lombok.Data;
import oshi.SystemInfo;
@ -57,26 +58,31 @@ public class SystemHardwareCalculator {
/**
* CPU
*/
@ChineseDescription("CPU相关信息")
private CpuInfo cpu = new CpuInfo();
/**
*
*/
@ChineseDescription("内存相关信息")
private MemInfo mem = new MemInfo();
/**
* JVM
*/
@ChineseDescription("JWT相关信息")
private JvmInfo jvm = new JvmInfo();
/**
*
*/
@ChineseDescription("服务器相关信息")
private SysInfo sys = new SysInfo();
/**
*
*/
@ChineseDescription("磁盘相关信息")
private List<SysFileInfo> sysFiles = new LinkedList<>();
/**

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.customer.api.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.util.Date;
@ -16,61 +17,73 @@ public class CustomerInfo {
/**
* id
*/
@ChineseDescription("主键id")
private Long customerId;
/**
*
*/
@ChineseDescription("帐号")
private String account;
/**
*
*/
@ChineseDescription("昵称(显示名称)")
private String nickName;
/**
*
*/
@ChineseDescription("邮箱")
private String email;
/**
*
*/
@ChineseDescription("手机")
private String telephone;
/**
* id
*/
@ChineseDescription("用户头像文件表id")
private Long avatar;
/**
* url
*/
@ChineseDescription("用户头像的全部url")
private String avatarObjectUrl;
/**
*
*/
@ChineseDescription("用户积分")
private Integer score;
/**
*
*/
@ChineseDescription("用户秘钥")
private String secretKey;
/**
*
*/
@ChineseDescription("是否会员")
private Boolean memberFlag;
/**
*
*/
@ChineseDescription("会员截止日期,到期时间")
private Date memberExpireTime;
/**
* 123
*/
@ChineseDescription("用户状态")
private Integer statusFlag;
}

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.customer.api.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -21,24 +22,28 @@ public class CustomerInfoRequest extends BaseRequest {
* id
*/
@NotNull(message = "用户id不能为空", groups = {changeAvatar.class, changePassword.class})
@ChineseDescription("主键id")
private Long customerId;
/**
* id
*/
@NotNull(message = "用户头像", groups = changeAvatar.class)
@ChineseDescription("用户头像文件表id")
private Long avatar;
/**
*
*/
@NotBlank(message = "原密码不能为空", groups = changePassword.class)
@ChineseDescription("原密码")
private String oldPassword;
/**
*
*/
@NotBlank(message = "新密码不能为空", groups = changePassword.class)
@ChineseDescription("新密码")
private String newPassword;
/**

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.dict.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -48,88 +49,103 @@ public class SysDict extends BaseEntity {
* id
*/
@TableId(value = "dict_id", type = IdType.ASSIGN_ID)
@ChineseDescription("字典id")
private Long dictId;
/**
*
*/
@TableField("dict_code")
@ChineseDescription("字典编码")
private String dictCode;
/**
*
*/
@TableField("dict_name")
@ChineseDescription("字典名称")
private String dictName;
/**
*
*/
@TableField("dict_name_pinyin")
@ChineseDescription("字典名称首字母")
private String dictNamePinyin;
/**
*
*/
@TableField("dict_encode")
@ChineseDescription("字典编码")
private String dictEncode;
/**
*
*/
@TableField("dict_type_code")
@ChineseDescription("字典类型的编码")
private String dictTypeCode;
/**
*
*/
@TableField("dict_short_name")
@ChineseDescription("字典简称")
private String dictShortName;
/**
*
*/
@TableField("dict_short_code")
@ChineseDescription("字典简称的编码")
private String dictShortCode;
/**
* id(id-1)
*/
@TableField("dict_parent_id")
@ChineseDescription("上级字典的id(如果没有上级字典id则为-1)")
private Long dictParentId;
/**
* (1-,2-), StatusEnum
*/
@TableField("status_flag")
@ChineseDescription("状态:(1-启用,2-禁用)")
private Integer statusFlag;
/**
*
*/
@TableField("dict_sort")
@ChineseDescription("排序")
private BigDecimal dictSort;
/**
* id
*/
@TableField("dict_pids")
@ChineseDescription("父id集合")
private String dictPids;
/**
* Y-N-
*/
@TableField(value = "del_flag", fill = FieldFill.INSERT)
@ChineseDescription("是否删除Y-被删除N-未删除")
private String delFlag;
/**
*
*/
@ChineseDescription("字典类型的名称")
private transient String dictTypeName;
/**
*
*/
@ChineseDescription("字典上级的名称(字典有上下级,字典类型没有上下级)")
private transient String parentName;
}

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.dict.modular.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -46,60 +47,70 @@ public class SysDictType extends BaseEntity {
* id
*/
@TableId(value = "dict_type_id", type = IdType.ASSIGN_ID)
@ChineseDescription("字典类型id")
private Long dictTypeId;
/**
* 1-2- DictTypeClassEnum
*/
@TableField("dict_type_class")
@ChineseDescription("字典类型")
private Integer dictTypeClass;
/**
*
*/
@TableField("dict_type_code")
@ChineseDescription("字典类型编码")
private String dictTypeCode;
/**
*
*/
@TableField("dict_type_bus_code")
@ChineseDescription("字典类型业务编码")
private String dictTypeBusCode;
/**
*
*/
@TableField("dict_type_name")
@ChineseDescription("字典类型名称")
private String dictTypeName;
/**
*
*/
@TableField("dict_type_name_pinyin")
@ChineseDescription("字典类型名词拼音")
private String dictTypeNamePinyin;
/**
*
*/
@TableField("dict_type_desc")
@ChineseDescription("字典类型描述")
private String dictTypeDesc;
/**
* 1-2- StatusEnum
*/
@TableField("status_flag")
@ChineseDescription("字典类型的状态1-启用2-禁用")
private Integer statusFlag;
/**
* Y-N- YesOrNotEnum
*/
@TableField(value = "del_flag", fill = FieldFill.INSERT)
@ChineseDescription("删除标记")
private String delFlag;
/**
*
*/
@TableField(value = "dict_type_sort")
@ChineseDescription("排序")
private BigDecimal dictTypeSort;
}

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.dict.modular.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.tree.factory.base.AbstractTreeNode;
import lombok.Data;
@ -43,26 +44,31 @@ public class TreeDictInfo implements AbstractTreeNode<TreeDictInfo> {
/**
* id
*/
@ChineseDescription("字典id")
private Long dictId;
/**
*
*/
@ChineseDescription("字典编码")
private String dictCode;
/**
*
*/
@ChineseDescription("字典名称")
private String dictName;
/**
* id
*/
@ChineseDescription("上级字典id")
private Long dictParentId;
/**
* tree
*/
@ChineseDescription("tree子节点")
private List<TreeDictInfo> children;
@Override

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.dict.modular.pojo.request;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.validator.api.validators.status.StatusValue;
import lombok.Data;
@ -47,44 +48,52 @@ public class DictRequest extends BaseRequest {
* id
*/
@NotNull(message = "id不能为空", groups = {edit.class, delete.class, detail.class, updateStatus.class})
@ChineseDescription("字典id")
private Long dictId;
/**
*
*/
@NotBlank(message = "字典编码不能为空", groups = {add.class, edit.class, validateAvailable.class})
@ChineseDescription("字典编码")
private String dictCode;
/**
*
*/
@NotBlank(message = "字典名称不能为空", groups = {add.class, edit.class})
@ChineseDescription("字典名称")
private String dictName;
/**
*
*/
@ChineseDescription("字典名称拼音")
private String dictNamePinYin;
/**
*
*/
@ChineseDescription("字典编码")
private String dictEncode;
/**
*
*/
@NotBlank(message = "字典类型编码不能为空", groups = {add.class, edit.class, treeList.class, dictZTree.class})
@ChineseDescription("字典类型编码")
private String dictTypeCode;
/**
*
*/
@ChineseDescription("字典简称")
private String dictShortName;
/**
*
*/
@ChineseDescription("字典简称的编码")
private String dictShortCode;
/**
@ -94,6 +103,7 @@ public class DictRequest extends BaseRequest {
* <p>
* id-1
*/
@ChineseDescription("上级字典的id")
private Long dictParentId;
/**
@ -101,22 +111,26 @@ public class DictRequest extends BaseRequest {
*/
@NotNull(message = "状态不能为空", groups = {updateStatus.class})
@StatusValue(groups = updateStatus.class)
@ChineseDescription("状态")
private Integer statusFlag;
/**
*
*/
@ChineseDescription("排序")
@NotNull(message = "排序不能为空", groups = {add.class, edit.class})
private BigDecimal dictSort;
/**
* id,
*/
@ChineseDescription("所有的父级id")
private String dictPids;
/**
* id
*/
@ChineseDescription("字典类型id")
private Long dictTypeId;
/**

View File

@ -56,7 +56,7 @@ public class DictTypeRequest extends BaseRequest {
* 1-2- DictTypeClassEnum
*/
@NotNull(message = "字典类型不能为空", groups = {add.class, edit.class})
@ChineseDescription("字典类型 1-业务类型2-系统类型")
@ChineseDescription("字典类型")
private Integer dictTypeClass;
/**
@ -110,7 +110,7 @@ public class DictTypeRequest extends BaseRequest {
*
*/
@NotNull(message = "排序不能为空", groups = {add.class, edit.class})
@ChineseDescription("排序,带小数")
@ChineseDescription("排序")
private BigDecimal dictTypeSort;
/**

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.message.api.pojo.request;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -47,63 +48,75 @@ public class MessageRequest extends BaseRequest {
* id
*/
@NotNull(message = "messageId不能为空", groups = {edit.class, delete.class, detail.class, updateStatus.class})
@ChineseDescription("消息id")
private Long messageId;
/**
* id
*/
@ChineseDescription("接收用户id")
private Long receiveUserId;
/**
* id
*/
@ChineseDescription("发送用户id")
private Long sendUserId;
/**
*
*/
@ChineseDescription("消息标题")
private String messageTitle;
/**
*
*/
@ChineseDescription("消息内容")
private String messageContent;
/**
*
*/
@ChineseDescription("消息类型")
private String messageType;
/**
*
*/
@ChineseDescription("消息优先级")
private String priorityLevel;
/**
*
*/
@ChineseDescription("消息发送时间")
private Date messageSendTime;
/**
* id
*/
@ChineseDescription("业务id")
private Long businessId;
/**
*
*/
@ChineseDescription("业务类型")
private String businessType;
/**
* 0-1-
*/
@NotNull(message = "阅读状态不能为空", groups = {updateStatus.class})
@ChineseDescription("阅读状态")
private Integer readFlag;
/**
* id
*/
@NotEmpty(message = "消息id集合不能为空", groups = {updateReadFlag.class})
@ChineseDescription("消息id集合")
private List<Long> messageIdList;

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.message.api.pojo.request;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -46,49 +47,58 @@ public class MessageSendRequest extends BaseRequest {
* id,
*/
@NotBlank(message = "接收用户ID字符串不能为空", groups = {add.class, edit.class})
@ChineseDescription("接收用户id字符串多个以,分割")
private String receiveUserIds;
/**
*
*/
@NotBlank(message = "消息标题不能为空", groups = {add.class, edit.class})
@ChineseDescription("消息标题")
private String messageTitle;
/**
*
*/
@ChineseDescription("消息内容")
private String messageContent;
/**
*
*/
@ChineseDescription("消息类型")
private String messageType;
/**
*
*/
@ChineseDescription("消息优先级")
private String priorityLevel;
/**
* id
*/
@NotNull(message = "业务id不能为空", groups = {add.class, edit.class})
@ChineseDescription("业务id")
private Long businessId;
/**
*
*/
@NotBlank(message = "业务类型不能为空", groups = {add.class, edit.class})
@ChineseDescription("业务类型")
private String businessType;
/**
*
*/
@ChineseDescription("业务类型值")
private String businessTypeValue;
/**
*
*/
@ChineseDescription("消息发送时间")
private Date messageSendTime;
}

View File

@ -27,6 +27,7 @@ package cn.stylefeng.roses.kernel.message.api.pojo.response;
import cn.stylefeng.roses.kernel.message.api.enums.MessageBusinessTypeEnum;
import cn.stylefeng.roses.kernel.message.api.enums.MessagePriorityLevelEnum;
import cn.stylefeng.roses.kernel.message.api.enums.MessageReadFlagEnum;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.io.Serializable;
@ -46,66 +47,79 @@ public class MessageResponse implements Serializable {
/**
* id
*/
@ChineseDescription("消息id")
private Long messageId;
/**
* id
*/
@ChineseDescription("接收用户id")
private Long receiveUserId;
/**
* id
*/
@ChineseDescription("发送用户id")
private Long sendUserId;
/**
*
*/
@ChineseDescription("消息标题")
private String messageTitle;
/**
*
*/
@ChineseDescription("消息内容")
private String messageContent;
/**
*
*/
@ChineseDescription("消息优先级")
private String priorityLevel;
/**
*
*/
@ChineseDescription("消息类型")
private String messageType;
/**
*
*/
@ChineseDescription("消息发送时间")
private Date messageSendTime;
/**
* id
*/
@ChineseDescription("业务id")
private Long businessId;
/**
*
*/
@ChineseDescription("业务类型")
private String businessType;
/**
* 0-1-
*/
@ChineseDescription("阅读状态0-未读1-已读")
private Integer readFlag;
/**
*
*/
@ChineseDescription("消息优先级")
private String priorityLevelValue;
/**
* 0-1-
*/
@ChineseDescription("阅读状态0-未读1-已读")
private String readFlagValue;
public String getPriorityLevelValue(){

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.migration.web.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.util.List;
@ -16,11 +17,13 @@ public class MigrationRequest {
/**
*
*/
@ChineseDescription("应用名称")
private String appName;
/**
*
*/
@ChineseDescription("模块列表")
private List<String> moduleNames;
}

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.system.api.pojo.theme;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.util.Date;
@ -16,35 +17,42 @@ public class SysThemeDTO {
/**
* ID
*/
@ChineseDescription("主键id")
private Long themeId;
/**
*
*/
@ChineseDescription("主题名称")
private String themeName;
/**
* (JSON)
*/
@ChineseDescription("主题属性(JSON格式)")
private String themeValue;
/**
* ID
*/
@ChineseDescription("主题模板id")
private Long templateId;
/**
* Y-N-
*/
@ChineseDescription("启用状态Y-启用N-禁用")
private Character statusFlag;
/**
*
*/
@ChineseDescription("模板名称,用于前端数据渲染")
private String templateName;
/**
*
*/
@ChineseDescription("创建时间")
private Date createTime;
}

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.system.api.pojo.theme;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
/**
@ -14,50 +15,60 @@ public class SysThemeTemplateDataDTO {
/**
* ID
*/
@ChineseDescription("主键id")
private Long templateId;
/**
*
*/
@ChineseDescription("主题模板名称")
private String templateName;
/**
*
*/
@ChineseDescription("主题模板编码")
private String templateCode;
/**
* ID
*/
@ChineseDescription("属性字段id")
private Long fieldId;
/**
*
*/
@ChineseDescription("属性名称")
private String fieldName;
/**
*
*/
@ChineseDescription("想属性编码")
private String fieldCode;
/**
* ()
*
*/
@ChineseDescription("属性展示类型")
private String fieldType;
/**
* Y-N-
*/
@ChineseDescription("是否必填Y-必填N-非必填")
private Character fieldRequired;
/**
*
*/
@ChineseDescription("属性长度")
private Integer fieldLength;
/**
*
*/
@ChineseDescription("属性描述")
private String fieldDescription;
}

View File

@ -1,10 +1,12 @@
package cn.stylefeng.roses.kernel.system.modular.home.controller;
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
import cn.stylefeng.roses.kernel.system.modular.home.entity.SysStatisticsCount;
import cn.stylefeng.roses.kernel.system.modular.home.pojo.request.SysStatisticsCountRequest;
import cn.stylefeng.roses.kernel.system.modular.home.service.SysStatisticsCountService;
import org.springframework.validation.annotation.Validated;
@ -12,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
@ -33,9 +36,9 @@ public class SysStatisticsController {
* @date 2022/02/10 21:17
*/
@PostResource(name = "添加", path = "/sysStatisticsCount/add")
public ResponseData add(@RequestBody @Validated(SysStatisticsCountRequest.add.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
public ResponseData<?> add(@RequestBody @Validated(SysStatisticsCountRequest.add.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
sysStatisticsCountService.add(sysStatisticsCountRequest);
return new SuccessResponseData();
return new SuccessResponseData<>();
}
/**
@ -45,9 +48,9 @@ public class SysStatisticsController {
* @date 2022/02/10 21:17
*/
@PostResource(name = "删除", path = "/sysStatisticsCount/delete")
public ResponseData delete(@RequestBody @Validated(SysStatisticsCountRequest.delete.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
public ResponseData<?> delete(@RequestBody @Validated(SysStatisticsCountRequest.delete.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
sysStatisticsCountService.del(sysStatisticsCountRequest);
return new SuccessResponseData();
return new SuccessResponseData<>();
}
/**
@ -57,9 +60,9 @@ public class SysStatisticsController {
* @date 2022/02/10 21:17
*/
@PostResource(name = "编辑", path = "/sysStatisticsCount/edit")
public ResponseData edit(@RequestBody @Validated(SysStatisticsCountRequest.edit.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
public ResponseData<?> edit(@RequestBody @Validated(SysStatisticsCountRequest.edit.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
sysStatisticsCountService.edit(sysStatisticsCountRequest);
return new SuccessResponseData();
return new SuccessResponseData<>();
}
/**
@ -69,8 +72,8 @@ public class SysStatisticsController {
* @date 2022/02/10 21:17
*/
@GetResource(name = "查看详情", path = "/sysStatisticsCount/detail")
public ResponseData detail(@Validated(SysStatisticsCountRequest.detail.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
return new SuccessResponseData(sysStatisticsCountService.detail(sysStatisticsCountRequest));
public ResponseData<SysStatisticsCount> detail(@Validated(SysStatisticsCountRequest.detail.class) SysStatisticsCountRequest sysStatisticsCountRequest) {
return new SuccessResponseData<>(sysStatisticsCountService.detail(sysStatisticsCountRequest));
}
/**
@ -80,8 +83,8 @@ public class SysStatisticsController {
* @date 2022/02/10 21:17
*/
@GetResource(name = "获取列表", path = "/sysStatisticsCount/list")
public ResponseData list(SysStatisticsCountRequest sysStatisticsCountRequest) {
return new SuccessResponseData(sysStatisticsCountService.findList(sysStatisticsCountRequest));
public ResponseData<List<SysStatisticsCount>> list(SysStatisticsCountRequest sysStatisticsCountRequest) {
return new SuccessResponseData<>(sysStatisticsCountService.findList(sysStatisticsCountRequest));
}
/**
@ -91,8 +94,8 @@ public class SysStatisticsController {
* @date 2022/02/10 21:17
*/
@GetResource(name = "分页查询", path = "/sysStatisticsCount/page")
public ResponseData page(SysStatisticsCountRequest sysStatisticsCountRequest) {
return new SuccessResponseData(sysStatisticsCountService.findPage(sysStatisticsCountRequest));
public ResponseData<PageResult<SysStatisticsCount>> page(SysStatisticsCountRequest sysStatisticsCountRequest) {
return new SuccessResponseData<>(sysStatisticsCountService.findPage(sysStatisticsCountRequest));
}
}

View File

@ -1,6 +1,7 @@
package cn.stylefeng.roses.kernel.system.modular.home.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
@ -23,24 +24,28 @@ public class SysStatisticsCount extends BaseEntity {
* ID
*/
@TableId(value = "stat_count_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键id")
private Long statCountId;
/**
* id
*/
@TableField("user_id")
@ChineseDescription("用户id")
private Long userId;
/**
* 访
*/
@TableField("stat_url_id")
@ChineseDescription("访问地址")
private Long statUrlId;
/**
* 访
*/
@TableField("stat_count")
@ChineseDescription("访问次数")
private Integer statCount;
}

View File

@ -1,5 +1,6 @@
package cn.stylefeng.roses.kernel.system.modular.theme.pojo;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import java.util.Map;
@ -16,41 +17,49 @@ public class DefaultTheme {
/**
*
*/
@ChineseDescription("平台名称")
private String gunsMgrName;
/**
*
*/
@ChineseDescription("登录页背景图片")
private String gunsMgrLoginBackgroundImg;
/**
* LOGO
*/
@ChineseDescription("平台LOGO")
private String gunsMgrLogo;
/**
* Icon
*/
@ChineseDescription("浏览器Icon")
private String gunsMgrFavicon;
/**
*
*/
@ChineseDescription("页脚文字")
private String gunsMgrFooterText;
/**
*
*/
@ChineseDescription("备案号")
private String gunsMgrBeiNo;
/**
*
*/
@ChineseDescription("备案号跳转链接")
private String gunsMgrBeiUrl;
/**
*
*/
@ChineseDescription("其他的主题配置")
private Map<String, String> otherConfigs;
}

View File

@ -25,6 +25,7 @@
package cn.stylefeng.roses.kernel.system.modular.user.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
@ -45,18 +46,21 @@ public class SysUserRole extends BaseEntity {
*
*/
@TableId(value = "user_role_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键id")
private Long userRoleId;
/**
* id
*/
@TableField("user_id")
@ChineseDescription("用户id")
private Long userId;
/**
* id
*/
@TableField("role_id")
@ChineseDescription("角色id")
private Long roleId;
}