提交 163893dc 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码 [ibiz-uaa,UAA鉴权]

上级 b3b5453b
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
git clone -b master $para2 ibzuaa/ git clone -b master $para2 ibzuaa/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzuaa/ cd ibzuaa/
mvn clean package -Papi
cd ibzuaa-provider/ibzuaa-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-provider-api.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit; ...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit;
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ApiModel("应用")
public class SysApp extends EntityBase implements Serializable { public class SysApp extends EntityBase implements Serializable {
/** /**
...@@ -42,6 +45,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -42,6 +45,7 @@ public class SysApp extends EntityBase implements Serializable {
@DEField(name = "appid", isKeyField = true) @DEField(name = "appid", isKeyField = true)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("应用标识")
private String id; private String id;
/** /**
...@@ -50,6 +54,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -50,6 +54,7 @@ public class SysApp extends EntityBase implements Serializable {
@DEField(name = "appname") @DEField(name = "appname")
@JSONField(name = "label") @JSONField(name = "label")
@JsonProperty("label") @JsonProperty("label")
@ApiModelProperty("应用名")
private String label; private String label;
/** /**
...@@ -58,6 +63,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -58,6 +63,7 @@ public class SysApp extends EntityBase implements Serializable {
@DEField(name = "pssystemid") @DEField(name = "pssystemid")
@JSONField(name = "systemId") @JSONField(name = "systemId")
@JsonProperty("systemId") @JsonProperty("systemId")
@ApiModelProperty("系统标识")
private String systemid; private String systemid;
/** /**
...@@ -65,6 +71,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -65,6 +71,7 @@ public class SysApp extends EntityBase implements Serializable {
*/ */
@JSONField(name = "fullName") @JSONField(name = "fullName")
@JsonProperty("fullName") @JsonProperty("fullName")
@ApiModelProperty("全称")
private String fullname; private String fullname;
/** /**
...@@ -73,6 +80,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -73,6 +80,7 @@ public class SysApp extends EntityBase implements Serializable {
@DEField(name = "apptype") @DEField(name = "apptype")
@JSONField(name = "type") @JSONField(name = "type")
@JsonProperty("type") @JsonProperty("type")
@ApiModelProperty("类型")
private String type; private String type;
/** /**
...@@ -81,6 +89,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysApp extends EntityBase implements Serializable {
@DEField(name = "appgroup") @DEField(name = "appgroup")
@JSONField(name = "group") @JSONField(name = "group")
@JsonProperty("group") @JsonProperty("group")
@ApiModelProperty("分组")
private String group; private String group;
/** /**
...@@ -88,6 +97,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -88,6 +97,7 @@ public class SysApp extends EntityBase implements Serializable {
*/ */
@JSONField(name = "icon") @JSONField(name = "icon")
@JsonProperty("icon") @JsonProperty("icon")
@ApiModelProperty("图标")
private String icon; private String icon;
/** /**
...@@ -95,6 +105,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -95,6 +105,7 @@ public class SysApp extends EntityBase implements Serializable {
*/ */
@JSONField(name = "visabled") @JSONField(name = "visabled")
@JsonProperty("visabled") @JsonProperty("visabled")
@ApiModelProperty("可见")
private Integer visabled; private Integer visabled;
/** /**
...@@ -102,6 +113,7 @@ public class SysApp extends EntityBase implements Serializable { ...@@ -102,6 +113,7 @@ public class SysApp extends EntityBase implements Serializable {
*/ */
@JSONField(name = "addr") @JSONField(name = "addr")
@JsonProperty("addr") @JsonProperty("addr")
@ApiModelProperty("地址")
private String addr; private String addr;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZAUTHLOG", resultMap = "SysAuthLogResultMap") @TableName(value = "IBZAUTHLOG", resultMap = "SysAuthLogResultMap")
@ApiModel("认证日志")
public class SysAuthLog extends EntityMP implements Serializable { public class SysAuthLog extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableId(value = "logid", type = IdType.ASSIGN_UUID) @TableId(value = "logid", type = IdType.ASSIGN_UUID)
@JSONField(name = "logid") @JSONField(name = "logid")
@JsonProperty("logid") @JsonProperty("logid")
@ApiModelProperty("标识")
private String logid; private String logid;
/** /**
* 用户全局名 * 用户全局名
...@@ -57,6 +61,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -57,6 +61,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableField(value = "username") @TableField(value = "username")
@JSONField(name = "username") @JSONField(name = "username")
@JsonProperty("username") @JsonProperty("username")
@ApiModelProperty("用户全局名")
private String username; private String username;
/** /**
* 用户名称 * 用户名称
...@@ -64,6 +69,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -64,6 +69,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableField(value = "personname") @TableField(value = "personname")
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@ApiModelProperty("用户名称")
private String personname; private String personname;
/** /**
* 域 * 域
...@@ -71,6 +77,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -71,6 +77,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableField(value = "domain") @TableField(value = "domain")
@JSONField(name = "domain") @JSONField(name = "domain")
@JsonProperty("domain") @JsonProperty("domain")
@ApiModelProperty("域")
private String domain; private String domain;
/** /**
* 认证时间 * 认证时间
...@@ -80,6 +87,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -80,6 +87,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "authtime", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "authtime", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("authtime") @JsonProperty("authtime")
@ApiModelProperty("认证时间")
private Timestamp authtime; private Timestamp authtime;
/** /**
* IP地址 * IP地址
...@@ -87,6 +95,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -87,6 +95,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableField(value = "ipaddr") @TableField(value = "ipaddr")
@JSONField(name = "ipaddr") @JSONField(name = "ipaddr")
@JsonProperty("ipaddr") @JsonProperty("ipaddr")
@ApiModelProperty("IP地址")
private String ipaddr; private String ipaddr;
/** /**
* MAC地址 * MAC地址
...@@ -94,6 +103,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -94,6 +103,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableField(value = "macaddr") @TableField(value = "macaddr")
@JSONField(name = "macaddr") @JSONField(name = "macaddr")
@JsonProperty("macaddr") @JsonProperty("macaddr")
@ApiModelProperty("MAC地址")
private String macaddr; private String macaddr;
/** /**
* 客户端 * 客户端
...@@ -101,6 +111,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -101,6 +111,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableField(value = "useragent") @TableField(value = "useragent")
@JSONField(name = "useragent") @JSONField(name = "useragent")
@JsonProperty("useragent") @JsonProperty("useragent")
@ApiModelProperty("客户端")
private String useragent; private String useragent;
/** /**
* 认证结果 * 认证结果
...@@ -108,6 +119,7 @@ public class SysAuthLog extends EntityMP implements Serializable { ...@@ -108,6 +119,7 @@ public class SysAuthLog extends EntityMP implements Serializable {
@TableField(value = "authcode") @TableField(value = "authcode")
@JSONField(name = "authcode") @JSONField(name = "authcode")
@JsonProperty("authcode") @JsonProperty("authcode")
@ApiModelProperty("认证结果")
private String authcode; private String authcode;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZOPENACCESS", resultMap = "SysOpenAccessResultMap") @TableName(value = "IBZOPENACCESS", resultMap = "SysOpenAccessResultMap")
@ApiModel("第三方认证平台")
public class SysOpenAccess extends EntityMP implements Serializable { public class SysOpenAccess extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableId(value = "accessid", type = IdType.ASSIGN_UUID) @TableId(value = "accessid", type = IdType.ASSIGN_UUID)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("开放平台接入标识")
private String id; private String id;
/** /**
* 开放平台 * 开放平台
...@@ -58,6 +62,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -58,6 +62,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "accessname") @TableField(value = "accessname")
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@ApiModelProperty("开放平台")
private String name; private String name;
/** /**
* 开放平台类型 * 开放平台类型
...@@ -66,6 +71,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -66,6 +71,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "open_type") @TableField(value = "open_type")
@JSONField(name = "open_type") @JSONField(name = "open_type")
@JsonProperty("open_type") @JsonProperty("open_type")
@ApiModelProperty("开放平台类型")
private String openType; private String openType;
/** /**
* AccessKey(AppId) * AccessKey(AppId)
...@@ -74,6 +80,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -74,6 +80,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "access_key") @TableField(value = "access_key")
@JSONField(name = "access_key") @JSONField(name = "access_key")
@JsonProperty("access_key") @JsonProperty("access_key")
@ApiModelProperty("AccessKey(AppId)")
private String accessKey; private String accessKey;
/** /**
* SecretKey(AppSecret) * SecretKey(AppSecret)
...@@ -82,6 +89,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -82,6 +89,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "secret_key") @TableField(value = "secret_key")
@JSONField(name = "secret_key") @JSONField(name = "secret_key")
@JsonProperty("secret_key") @JsonProperty("secret_key")
@ApiModelProperty("SecretKey(AppSecret)")
private String secretKey; private String secretKey;
/** /**
* RegionId * RegionId
...@@ -90,6 +98,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -90,6 +98,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "region_id") @TableField(value = "region_id")
@JSONField(name = "region_id") @JSONField(name = "region_id")
@JsonProperty("region_id") @JsonProperty("region_id")
@ApiModelProperty("RegionId")
private String regionId; private String regionId;
/** /**
* 管理账号token * 管理账号token
...@@ -98,6 +107,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -98,6 +107,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "access_token") @TableField(value = "access_token")
@JSONField(name = "access_token") @JSONField(name = "access_token")
@JsonProperty("access_token") @JsonProperty("access_token")
@ApiModelProperty("管理账号token")
private String accessToken; private String accessToken;
/** /**
* 管理账号token过期时间 * 管理账号token过期时间
...@@ -107,6 +117,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -107,6 +117,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "expires_time", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "expires_time", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("expires_time") @JsonProperty("expires_time")
@ApiModelProperty("管理账号token过期时间")
private Timestamp expiresTime; private Timestamp expiresTime;
/** /**
* 是否禁用 * 是否禁用
...@@ -115,6 +126,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -115,6 +126,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "disabled") @TableField(value = "disabled")
@JSONField(name = "disabled") @JSONField(name = "disabled")
@JsonProperty("disabled") @JsonProperty("disabled")
@ApiModelProperty("是否禁用")
private Integer disabled; private Integer disabled;
/** /**
* RedirectURI * RedirectURI
...@@ -123,6 +135,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -123,6 +135,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "redirect_uri") @TableField(value = "redirect_uri")
@JSONField(name = "redirect_uri") @JSONField(name = "redirect_uri")
@JsonProperty("redirect_uri") @JsonProperty("redirect_uri")
@ApiModelProperty("RedirectURI")
private String redirectUri; private String redirectUri;
/** /**
* NotifyUrl * NotifyUrl
...@@ -131,6 +144,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -131,6 +144,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "notify_url") @TableField(value = "notify_url")
@JSONField(name = "notify_url") @JSONField(name = "notify_url")
@JsonProperty("notify_url") @JsonProperty("notify_url")
@ApiModelProperty("NotifyUrl")
private String notifyUrl; private String notifyUrl;
/** /**
* AGENT_ID * AGENT_ID
...@@ -139,6 +153,7 @@ public class SysOpenAccess extends EntityMP implements Serializable { ...@@ -139,6 +153,7 @@ public class SysOpenAccess extends EntityMP implements Serializable {
@TableField(value = "agent_id") @TableField(value = "agent_id")
@JSONField(name = "agent_id") @JSONField(name = "agent_id")
@JsonProperty("agent_id") @JsonProperty("agent_id")
@ApiModelProperty("AGENT_ID")
private Long agentId; private Long agentId;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZPERMISSION", resultMap = "SysPermissionResultMap") @TableName(value = "IBZPERMISSION", resultMap = "SysPermissionResultMap")
@ApiModel("权限/资源")
public class SysPermission extends EntityMP implements Serializable { public class SysPermission extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysPermission extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysPermission extends EntityMP implements Serializable {
@TableId(value = "sys_permissionid", type = IdType.ASSIGN_UUID) @TableId(value = "sys_permissionid", type = IdType.ASSIGN_UUID)
@JSONField(name = "permissionid") @JSONField(name = "permissionid")
@JsonProperty("permissionid") @JsonProperty("permissionid")
@ApiModelProperty("资源标识")
private String permissionid; private String permissionid;
/** /**
* 资源名称 * 资源名称
...@@ -58,6 +62,7 @@ public class SysPermission extends EntityMP implements Serializable { ...@@ -58,6 +62,7 @@ public class SysPermission extends EntityMP implements Serializable {
@TableField(value = "sys_permissionname") @TableField(value = "sys_permissionname")
@JSONField(name = "permissionname") @JSONField(name = "permissionname")
@JsonProperty("permissionname") @JsonProperty("permissionname")
@ApiModelProperty("资源名称")
private String permissionname; private String permissionname;
/** /**
* 资源类别 * 资源类别
...@@ -65,6 +70,7 @@ public class SysPermission extends EntityMP implements Serializable { ...@@ -65,6 +70,7 @@ public class SysPermission extends EntityMP implements Serializable {
@TableField(value = "permissiontype") @TableField(value = "permissiontype")
@JSONField(name = "permissiontype") @JSONField(name = "permissiontype")
@JsonProperty("permissiontype") @JsonProperty("permissiontype")
@ApiModelProperty("资源类别")
private String permissiontype; private String permissiontype;
/** /**
* 系统 * 系统
...@@ -72,6 +78,7 @@ public class SysPermission extends EntityMP implements Serializable { ...@@ -72,6 +78,7 @@ public class SysPermission extends EntityMP implements Serializable {
@TableField(value = "pssystemid") @TableField(value = "pssystemid")
@JSONField(name = "pssystemid") @JSONField(name = "pssystemid")
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
@ApiModelProperty("系统")
private String pssystemid; private String pssystemid;
/** /**
* 逻辑有效 * 逻辑有效
...@@ -81,6 +88,7 @@ public class SysPermission extends EntityMP implements Serializable { ...@@ -81,6 +88,7 @@ public class SysPermission extends EntityMP implements Serializable {
@TableField(value = "enable") @TableField(value = "enable")
@JSONField(name = "enable") @JSONField(name = "enable")
@JsonProperty("enable") @JsonProperty("enable")
@ApiModelProperty("逻辑有效")
private Integer enable; private Integer enable;
/** /**
* 建立时间 * 建立时间
...@@ -90,6 +98,7 @@ public class SysPermission extends EntityMP implements Serializable { ...@@ -90,6 +98,7 @@ public class SysPermission extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
* 更新时间 * 更新时间
...@@ -99,6 +108,7 @@ public class SysPermission extends EntityMP implements Serializable { ...@@ -99,6 +108,7 @@ public class SysPermission extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZROLE", resultMap = "SysRoleResultMap") @TableName(value = "IBZROLE", resultMap = "SysRoleResultMap")
@ApiModel("系统角色")
public class SysRole extends EntityMP implements Serializable { public class SysRole extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysRole extends EntityMP implements Serializable {
@TableId(value = "sys_roleid", type = IdType.ASSIGN_UUID) @TableId(value = "sys_roleid", type = IdType.ASSIGN_UUID)
@JSONField(name = "roleid") @JSONField(name = "roleid")
@JsonProperty("roleid") @JsonProperty("roleid")
@ApiModelProperty("角色标识")
private String roleid; private String roleid;
/** /**
* 角色名称 * 角色名称
...@@ -58,6 +62,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -58,6 +62,7 @@ public class SysRole extends EntityMP implements Serializable {
@TableField(value = "sys_rolename") @TableField(value = "sys_rolename")
@JSONField(name = "rolename") @JSONField(name = "rolename")
@JsonProperty("rolename") @JsonProperty("rolename")
@ApiModelProperty("角色名称")
private String rolename; private String rolename;
/** /**
* 备注 * 备注
...@@ -65,6 +70,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -65,6 +70,7 @@ public class SysRole extends EntityMP implements Serializable {
@TableField(value = "memo") @TableField(value = "memo")
@JSONField(name = "memo") @JSONField(name = "memo")
@JsonProperty("memo") @JsonProperty("memo")
@ApiModelProperty("备注")
private String memo; private String memo;
/** /**
* 父角色标识 * 父角色标识
...@@ -72,6 +78,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -72,6 +78,7 @@ public class SysRole extends EntityMP implements Serializable {
@TableField(value = "proleid") @TableField(value = "proleid")
@JSONField(name = "proleid") @JSONField(name = "proleid")
@JsonProperty("proleid") @JsonProperty("proleid")
@ApiModelProperty("父角色标识")
private String proleid; private String proleid;
/** /**
* 父角色名称 * 父角色名称
...@@ -79,6 +86,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -79,6 +86,7 @@ public class SysRole extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "prolename") @JSONField(name = "prolename")
@JsonProperty("prolename") @JsonProperty("prolename")
@ApiModelProperty("父角色名称")
private String prolename; private String prolename;
/** /**
* 建立时间 * 建立时间
...@@ -88,6 +96,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -88,6 +96,7 @@ public class SysRole extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
* 更新时间 * 更新时间
...@@ -97,6 +106,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -97,6 +106,7 @@ public class SysRole extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
/** /**
* 建立人 * 建立人
...@@ -105,6 +115,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -105,6 +115,7 @@ public class SysRole extends EntityMP implements Serializable {
@TableField(value = "createman", fill = FieldFill.INSERT) @TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman") @JSONField(name = "createman")
@JsonProperty("createman") @JsonProperty("createman")
@ApiModelProperty("建立人")
private String createman; private String createman;
/** /**
* 更新人 * 更新人
...@@ -113,6 +124,7 @@ public class SysRole extends EntityMP implements Serializable { ...@@ -113,6 +124,7 @@ public class SysRole extends EntityMP implements Serializable {
@TableField(value = "updateman") @TableField(value = "updateman")
@JSONField(name = "updateman") @JSONField(name = "updateman")
@JsonProperty("updateman") @JsonProperty("updateman")
@ApiModelProperty("更新人")
private String updateman; private String updateman;
/** /**
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZROLE_PERMISSION", resultMap = "SysRolePermissionResultMap") @TableName(value = "IBZROLE_PERMISSION", resultMap = "SysRolePermissionResultMap")
@ApiModel("角色权限关系")
public class SysRolePermission extends EntityMP implements Serializable { public class SysRolePermission extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@TableId(value = "sys_role_permissionid", type = IdType.ASSIGN_UUID) @TableId(value = "sys_role_permissionid", type = IdType.ASSIGN_UUID)
@JSONField(name = "rolepermissionid") @JSONField(name = "rolepermissionid")
@JsonProperty("rolepermissionid") @JsonProperty("rolepermissionid")
@ApiModelProperty("角色权限关系表标识")
private String rolepermissionid; private String rolepermissionid;
/** /**
* 角色表标识 * 角色表标识
...@@ -58,6 +62,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -58,6 +62,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@TableField(value = "sys_roleid") @TableField(value = "sys_roleid")
@JSONField(name = "roleid") @JSONField(name = "roleid")
@JsonProperty("roleid") @JsonProperty("roleid")
@ApiModelProperty("角色表标识")
private String roleid; private String roleid;
/** /**
* 角色名称 * 角色名称
...@@ -65,6 +70,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -65,6 +70,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "rolename") @JSONField(name = "rolename")
@JsonProperty("rolename") @JsonProperty("rolename")
@ApiModelProperty("角色名称")
private String rolename; private String rolename;
/** /**
* 权限表标识 * 权限表标识
...@@ -73,6 +79,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -73,6 +79,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@TableField(value = "sys_permissionid") @TableField(value = "sys_permissionid")
@JSONField(name = "permissionid") @JSONField(name = "permissionid")
@JsonProperty("permissionid") @JsonProperty("permissionid")
@ApiModelProperty("权限表标识")
private String permissionid; private String permissionid;
/** /**
* 权限名称 * 权限名称
...@@ -80,6 +87,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -80,6 +87,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "permissionname") @JSONField(name = "permissionname")
@JsonProperty("permissionname") @JsonProperty("permissionname")
@ApiModelProperty("权限名称")
private String permissionname; private String permissionname;
/** /**
* 权限类型 * 权限类型
...@@ -87,6 +95,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -87,6 +95,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "permissiontype") @JSONField(name = "permissiontype")
@JsonProperty("permissiontype") @JsonProperty("permissiontype")
@ApiModelProperty("权限类型")
private String permissiontype; private String permissiontype;
/** /**
* 权限类型 * 权限类型
...@@ -94,6 +103,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -94,6 +103,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "permissionenable") @JSONField(name = "permissionenable")
@JsonProperty("permissionenable") @JsonProperty("permissionenable")
@ApiModelProperty("权限类型")
private Integer permissionenable; private Integer permissionenable;
/** /**
* 建立时间 * 建立时间
...@@ -103,6 +113,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -103,6 +113,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
* 更新时间 * 更新时间
...@@ -112,6 +123,7 @@ public class SysRolePermission extends EntityMP implements Serializable { ...@@ -112,6 +123,7 @@ public class SysRolePermission extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
/** /**
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZUSER", resultMap = "SysUserResultMap") @TableName(value = "IBZUSER", resultMap = "SysUserResultMap")
@ApiModel("系统用户")
public class SysUser extends EntityMP implements Serializable { public class SysUser extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableId(value = "userid", type = IdType.ASSIGN_UUID) @TableId(value = "userid", type = IdType.ASSIGN_UUID)
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
* 用户全局名 * 用户全局名
...@@ -57,6 +61,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -57,6 +61,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "username") @TableField(value = "username")
@JSONField(name = "username") @JSONField(name = "username")
@JsonProperty("username") @JsonProperty("username")
@ApiModelProperty("用户全局名")
private String username; private String username;
/** /**
* 用户姓名 * 用户姓名
...@@ -64,6 +69,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -64,6 +69,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "personname") @TableField(value = "personname")
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@ApiModelProperty("用户姓名")
private String personname; private String personname;
/** /**
* 用户工号 * 用户工号
...@@ -71,6 +77,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -71,6 +77,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "usercode") @TableField(value = "usercode")
@JSONField(name = "usercode") @JSONField(name = "usercode")
@JsonProperty("usercode") @JsonProperty("usercode")
@ApiModelProperty("用户工号")
private String usercode; private String usercode;
/** /**
* 密码 * 密码
...@@ -78,6 +85,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -78,6 +85,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "password") @TableField(value = "password")
@JSONField(name = "password") @JSONField(name = "password")
@JsonProperty("password") @JsonProperty("password")
@ApiModelProperty("密码")
private String password; private String password;
/** /**
* 登录名 * 登录名
...@@ -85,6 +93,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -85,6 +93,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "loginname") @TableField(value = "loginname")
@JSONField(name = "loginname") @JSONField(name = "loginname")
@JsonProperty("loginname") @JsonProperty("loginname")
@ApiModelProperty("登录名")
private String loginname; private String loginname;
/** /**
* 区属 * 区属
...@@ -92,6 +101,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -92,6 +101,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "domains") @TableField(value = "domains")
@JSONField(name = "domains") @JSONField(name = "domains")
@JsonProperty("domains") @JsonProperty("domains")
@ApiModelProperty("区属")
private String domains; private String domains;
/** /**
* 主部门 * 主部门
...@@ -99,6 +109,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -99,6 +109,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "mdeptid") @TableField(value = "mdeptid")
@JSONField(name = "mdeptid") @JSONField(name = "mdeptid")
@JsonProperty("mdeptid") @JsonProperty("mdeptid")
@ApiModelProperty("主部门")
private String mdeptid; private String mdeptid;
/** /**
* 主部门代码 * 主部门代码
...@@ -106,6 +117,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -106,6 +117,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "mdeptcode") @TableField(value = "mdeptcode")
@JSONField(name = "mdeptcode") @JSONField(name = "mdeptcode")
@JsonProperty("mdeptcode") @JsonProperty("mdeptcode")
@ApiModelProperty("主部门代码")
private String mdeptcode; private String mdeptcode;
/** /**
* 主部门名称 * 主部门名称
...@@ -113,6 +125,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -113,6 +125,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "mdeptname") @TableField(value = "mdeptname")
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@ApiModelProperty("主部门名称")
private String mdeptname; private String mdeptname;
/** /**
* 业务编码 * 业务编码
...@@ -120,6 +133,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -120,6 +133,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "bcode") @TableField(value = "bcode")
@JSONField(name = "bcode") @JSONField(name = "bcode")
@JsonProperty("bcode") @JsonProperty("bcode")
@ApiModelProperty("业务编码")
private String bcode; private String bcode;
/** /**
* 岗位标识 * 岗位标识
...@@ -127,6 +141,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -127,6 +141,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "postid") @TableField(value = "postid")
@JSONField(name = "postid") @JSONField(name = "postid")
@JsonProperty("postid") @JsonProperty("postid")
@ApiModelProperty("岗位标识")
private String postid; private String postid;
/** /**
* 岗位代码 * 岗位代码
...@@ -134,6 +149,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -134,6 +149,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "postcode") @TableField(value = "postcode")
@JSONField(name = "postcode") @JSONField(name = "postcode")
@JsonProperty("postcode") @JsonProperty("postcode")
@ApiModelProperty("岗位代码")
private String postcode; private String postcode;
/** /**
* 岗位名称 * 岗位名称
...@@ -141,6 +157,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -141,6 +157,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "postname") @TableField(value = "postname")
@JSONField(name = "postname") @JSONField(name = "postname")
@JsonProperty("postname") @JsonProperty("postname")
@ApiModelProperty("岗位名称")
private String postname; private String postname;
/** /**
* 单位 * 单位
...@@ -149,6 +166,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -149,6 +166,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "orgid") @TableField(value = "orgid")
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
@ApiModelProperty("单位")
private String orgid; private String orgid;
/** /**
* 单位代码 * 单位代码
...@@ -156,6 +174,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -156,6 +174,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "orgcode") @TableField(value = "orgcode")
@JSONField(name = "orgcode") @JSONField(name = "orgcode")
@JsonProperty("orgcode") @JsonProperty("orgcode")
@ApiModelProperty("单位代码")
private String orgcode; private String orgcode;
/** /**
* 单位名称 * 单位名称
...@@ -164,6 +183,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -164,6 +183,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "orgname") @TableField(value = "orgname")
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@ApiModelProperty("单位名称")
private String orgname; private String orgname;
/** /**
* 昵称别名 * 昵称别名
...@@ -171,6 +191,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -171,6 +191,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "nickname") @TableField(value = "nickname")
@JSONField(name = "nickname") @JSONField(name = "nickname")
@JsonProperty("nickname") @JsonProperty("nickname")
@ApiModelProperty("昵称别名")
private String nickname; private String nickname;
/** /**
* 性别 * 性别
...@@ -178,6 +199,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -178,6 +199,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "sex") @TableField(value = "sex")
@JSONField(name = "sex") @JSONField(name = "sex")
@JsonProperty("sex") @JsonProperty("sex")
@ApiModelProperty("性别")
private String sex; private String sex;
/** /**
* 出生日期 * 出生日期
...@@ -186,6 +208,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -186,6 +208,7 @@ public class SysUser extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
@JSONField(name = "birthday", format = "yyyy-MM-dd") @JSONField(name = "birthday", format = "yyyy-MM-dd")
@JsonProperty("birthday") @JsonProperty("birthday")
@ApiModelProperty("出生日期")
private Timestamp birthday; private Timestamp birthday;
/** /**
* 证件号码 * 证件号码
...@@ -193,6 +216,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -193,6 +216,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "certcode") @TableField(value = "certcode")
@JSONField(name = "certcode") @JSONField(name = "certcode")
@JsonProperty("certcode") @JsonProperty("certcode")
@ApiModelProperty("证件号码")
private String certcode; private String certcode;
/** /**
* 联系方式 * 联系方式
...@@ -200,6 +224,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -200,6 +224,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "phone") @TableField(value = "phone")
@JSONField(name = "phone") @JSONField(name = "phone")
@JsonProperty("phone") @JsonProperty("phone")
@ApiModelProperty("联系方式")
private String phone; private String phone;
/** /**
* 邮件 * 邮件
...@@ -207,6 +232,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -207,6 +232,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "email") @TableField(value = "email")
@JSONField(name = "email") @JSONField(name = "email")
@JsonProperty("email") @JsonProperty("email")
@ApiModelProperty("邮件")
private String email; private String email;
/** /**
* 社交账号 * 社交账号
...@@ -214,6 +240,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -214,6 +240,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "avatar") @TableField(value = "avatar")
@JSONField(name = "avatar") @JSONField(name = "avatar")
@JsonProperty("avatar") @JsonProperty("avatar")
@ApiModelProperty("社交账号")
private String avatar; private String avatar;
/** /**
* 地址 * 地址
...@@ -221,6 +248,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -221,6 +248,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "addr") @TableField(value = "addr")
@JSONField(name = "addr") @JSONField(name = "addr")
@JsonProperty("addr") @JsonProperty("addr")
@ApiModelProperty("地址")
private String addr; private String addr;
/** /**
* 照片 * 照片
...@@ -228,6 +256,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -228,6 +256,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "usericon") @TableField(value = "usericon")
@JSONField(name = "usericon") @JSONField(name = "usericon")
@JsonProperty("usericon") @JsonProperty("usericon")
@ApiModelProperty("照片")
private String usericon; private String usericon;
/** /**
* 样式 * 样式
...@@ -235,6 +264,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -235,6 +264,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "theme") @TableField(value = "theme")
@JSONField(name = "theme") @JSONField(name = "theme")
@JsonProperty("theme") @JsonProperty("theme")
@ApiModelProperty("样式")
private String theme; private String theme;
/** /**
* 语言 * 语言
...@@ -242,6 +272,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -242,6 +272,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "lang") @TableField(value = "lang")
@JSONField(name = "lang") @JSONField(name = "lang")
@JsonProperty("lang") @JsonProperty("lang")
@ApiModelProperty("语言")
private String lang; private String lang;
/** /**
* 字号 * 字号
...@@ -249,6 +280,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -249,6 +280,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "fontsize") @TableField(value = "fontsize")
@JSONField(name = "fontsize") @JSONField(name = "fontsize")
@JsonProperty("fontsize") @JsonProperty("fontsize")
@ApiModelProperty("字号")
private String fontsize; private String fontsize;
/** /**
* 备注 * 备注
...@@ -256,6 +288,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -256,6 +288,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "memo") @TableField(value = "memo")
@JSONField(name = "memo") @JSONField(name = "memo")
@JsonProperty("memo") @JsonProperty("memo")
@ApiModelProperty("备注")
private String memo; private String memo;
/** /**
* 保留 * 保留
...@@ -263,6 +296,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -263,6 +296,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "reserver") @TableField(value = "reserver")
@JSONField(name = "reserver") @JSONField(name = "reserver")
@JsonProperty("reserver") @JsonProperty("reserver")
@ApiModelProperty("保留")
private String reserver; private String reserver;
/** /**
* 超级管理员 * 超级管理员
...@@ -271,6 +305,7 @@ public class SysUser extends EntityMP implements Serializable { ...@@ -271,6 +305,7 @@ public class SysUser extends EntityMP implements Serializable {
@TableField(value = "superuser") @TableField(value = "superuser")
@JSONField(name = "superuser") @JSONField(name = "superuser")
@JsonProperty("superuser") @JsonProperty("superuser")
@ApiModelProperty("超级管理员")
private Integer superuser; private Integer superuser;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZUSERAUTH", resultMap = "SysUserAuthResultMap") @TableName(value = "IBZUSERAUTH", resultMap = "SysUserAuthResultMap")
@ApiModel("账号绑定")
public class SysUserAuth extends EntityMP implements Serializable { public class SysUserAuth extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysUserAuth extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysUserAuth extends EntityMP implements Serializable {
@TableId(value = "authid", type = IdType.ASSIGN_UUID) @TableId(value = "authid", type = IdType.ASSIGN_UUID)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("标识")
private String id; private String id;
/** /**
* 用户标识 * 用户标识
...@@ -57,6 +61,7 @@ public class SysUserAuth extends EntityMP implements Serializable { ...@@ -57,6 +61,7 @@ public class SysUserAuth extends EntityMP implements Serializable {
@TableField(value = "userid") @TableField(value = "userid")
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
* 认证类型 * 认证类型
...@@ -65,6 +70,7 @@ public class SysUserAuth extends EntityMP implements Serializable { ...@@ -65,6 +70,7 @@ public class SysUserAuth extends EntityMP implements Serializable {
@TableField(value = "identity_type") @TableField(value = "identity_type")
@JSONField(name = "identity_type") @JSONField(name = "identity_type")
@JsonProperty("identity_type") @JsonProperty("identity_type")
@ApiModelProperty("认证类型")
private String identityType; private String identityType;
/** /**
* 认证标识 * 认证标识
...@@ -72,6 +78,7 @@ public class SysUserAuth extends EntityMP implements Serializable { ...@@ -72,6 +78,7 @@ public class SysUserAuth extends EntityMP implements Serializable {
@TableField(value = "identifier") @TableField(value = "identifier")
@JSONField(name = "identifier") @JSONField(name = "identifier")
@JsonProperty("identifier") @JsonProperty("identifier")
@ApiModelProperty("认证标识")
private String identifier; private String identifier;
/** /**
* 凭据 * 凭据
...@@ -79,6 +86,7 @@ public class SysUserAuth extends EntityMP implements Serializable { ...@@ -79,6 +86,7 @@ public class SysUserAuth extends EntityMP implements Serializable {
@TableField(value = "credential") @TableField(value = "credential")
@JSONField(name = "credential") @JSONField(name = "credential")
@JsonProperty("credential") @JsonProperty("credential")
@ApiModelProperty("凭据")
private String credential; private String credential;
/** /**
* 人员 * 人员
...@@ -86,6 +94,7 @@ public class SysUserAuth extends EntityMP implements Serializable { ...@@ -86,6 +94,7 @@ public class SysUserAuth extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "username") @JSONField(name = "username")
@JsonProperty("username") @JsonProperty("username")
@ApiModelProperty("人员")
private String username; private String username;
/** /**
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZUSER_ROLE", resultMap = "SysUserRoleResultMap") @TableName(value = "IBZUSER_ROLE", resultMap = "SysUserRoleResultMap")
@ApiModel("用户角色关系")
public class SysUserRole extends EntityMP implements Serializable { public class SysUserRole extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableId(value = "sys_user_roleid", type = IdType.ASSIGN_UUID) @TableId(value = "sys_user_roleid", type = IdType.ASSIGN_UUID)
@JSONField(name = "userroleid") @JSONField(name = "userroleid")
@JsonProperty("userroleid") @JsonProperty("userroleid")
@ApiModelProperty("用户角色关系标识")
private String userroleid; private String userroleid;
/** /**
* 角色标识 * 角色标识
...@@ -58,6 +62,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -58,6 +62,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableField(value = "sys_roleid") @TableField(value = "sys_roleid")
@JSONField(name = "roleid") @JSONField(name = "roleid")
@JsonProperty("roleid") @JsonProperty("roleid")
@ApiModelProperty("角色标识")
private String roleid; private String roleid;
/** /**
* 角色名称 * 角色名称
...@@ -65,6 +70,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -65,6 +70,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "rolename") @JSONField(name = "rolename")
@JsonProperty("rolename") @JsonProperty("rolename")
@ApiModelProperty("角色名称")
private String rolename; private String rolename;
/** /**
* 用户标识 * 用户标识
...@@ -73,6 +79,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -73,6 +79,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableField(value = "sys_userid") @TableField(value = "sys_userid")
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
* 用户名称 * 用户名称
...@@ -80,6 +87,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -80,6 +87,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@ApiModelProperty("用户名称")
private String personname; private String personname;
/** /**
* 登录名 * 登录名
...@@ -87,6 +95,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -87,6 +95,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "loginname") @JSONField(name = "loginname")
@JsonProperty("loginname") @JsonProperty("loginname")
@ApiModelProperty("登录名")
private String loginname; private String loginname;
/** /**
* 单位 * 单位
...@@ -94,6 +103,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -94,6 +103,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@ApiModelProperty("单位")
private String orgname; private String orgname;
/** /**
* 主部门 * 主部门
...@@ -101,6 +111,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -101,6 +111,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@ApiModelProperty("主部门")
private String mdeptname; private String mdeptname;
/** /**
* 建立时间 * 建立时间
...@@ -110,6 +121,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -110,6 +121,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
* 更新时间 * 更新时间
...@@ -119,6 +131,7 @@ public class SysUserRole extends EntityMP implements Serializable { ...@@ -119,6 +131,7 @@ public class SysUserRole extends EntityMP implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
/** /**
......
package cn.ibizlab.core.util.config; package cn.ibizlab.core.util.config;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyContext; import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyContext;
import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyStatus; import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyStatus;
import org.apache.rocketmq.client.consumer.listener.MessageListenerOrderly; import org.apache.rocketmq.client.consumer.listener.MessageListenerOrderly;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.apache.rocketmq.common.message.MessageExt; import org.apache.rocketmq.common.message.MessageExt;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* MQ订阅消息处理 * MQ订阅消息处理
...@@ -36,14 +39,22 @@ public class RocketMQListenerProcessor implements MessageListenerOrderly { ...@@ -36,14 +39,22 @@ public class RocketMQListenerProcessor implements MessageListenerOrderly {
try { try {
String topic = messageExt.getTopic(); String topic = messageExt.getTopic();
String tags = messageExt.getTags(); String tags = messageExt.getTags();
String body = new String(messageExt.getBody(), "utf-8"); String body = new String(messageExt.getBody(),"utf-8");
log.info("MQ消息topic={}, tags={}, 消息内容={}", topic, tags, body); log.info("MQ消息topic={}, tags={}, 消息内容={}", topic, tags, body);
if ("deletesysuser".equalsIgnoreCase(tags)) { if ("deletesysuser".equalsIgnoreCase(tags)) {
cn.ibizlab.core.uaa.domain.SysUser domain = JSON.parseObject(new String(body),cn.ibizlab.core.uaa.domain.SysUser.class); JSONObject obj = JSONObject.parseObject(body);
cn.ibizlab.core.uaa.domain.SysUser domain = new cn.ibizlab.core.uaa.domain.SysUser();
for(Map.Entry<String, Object> entry : obj.entrySet()){
domain.set(entry.getKey(),entry.getValue());
}
SysUserService.deleteSysUser(domain); SysUserService.deleteSysUser(domain);
} }
if ("savesysuser".equalsIgnoreCase(tags)) { if ("savesysuser".equalsIgnoreCase(tags)) {
cn.ibizlab.core.uaa.domain.SysUser domain = JSON.parseObject(new String(body),cn.ibizlab.core.uaa.domain.SysUser.class); JSONObject obj = JSONObject.parseObject(body);
cn.ibizlab.core.uaa.domain.SysUser domain = new cn.ibizlab.core.uaa.domain.SysUser();
for(Map.Entry<String, Object> entry : obj.entrySet()){
domain.set(entry.getKey(),entry.getValue());
}
SysUserService.saveSysUser(domain); SysUserService.saveSysUser(domain);
} }
} catch (Exception e) { } catch (Exception e) {
......
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar
EXPOSE 40002 EXPOSE 8081
ADD ibzuaa-provider-api.jar /ibzuaa-provider-api.jar ADD ibzuaa-provider-api.jar /ibzuaa-provider-api.jar
...@@ -22,36 +22,7 @@ spec: ...@@ -22,36 +22,7 @@ spec:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 40002 - containerPort: 8081
env:
- name: SPRING_CLOUD_NACOS_DISCOVERY_IP
value: "172.16.180.237"
- name: SERVER_PORT
value: "40002"
- name: SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR
value: "172.16.100.243:8848"
- name: SPRING_REDIS_HOST
value: "172.16.100.243"
- name: SPRING_REDIS_PORT
value: "6379"
- name: SPRING_REDIS_DATABASE
value: "0"
- name: SPRING_DATASOURCE_USERNAME
value: "a_A_5d9d78509"
- name: SPRING_DATASOURCE_PASSWORD
value: "@6dEfb3@"
- name: SPRING_DATASOURCE_URL
value: "jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true"
- name: SPRING_DATASOURCE_DRIVER-CLASS-NAME
value: "com.mysql.jdbc.Driver"
- name: SPRING_DATASOURCE_DEFAULTSCHEMA
value: "a_A_5d9d78509"
- name: IBIZ_OAUTH2_ENABLE
value: "true"
- name: NACOS
value: "172.16.100.243:8848"
- name: SPRING_CLOUD_NACOS_DISCOVERY_GROUP
value: "ibizdev"
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: /app/file mountPath: /app/file
...@@ -71,9 +42,9 @@ spec: ...@@ -71,9 +42,9 @@ spec:
type: NodePort type: NodePort
ports: ports:
- name: http - name: http
port: 40002 port: 8081
targetPort: 40002 targetPort: 8081
nodePort: 40002 nodePort: 8081
protocol: TCP protocol: TCP
selector: selector:
app: ibzuaa-provider-api app: ibzuaa-provider-api
......
...@@ -3,24 +3,9 @@ services: ...@@ -3,24 +3,9 @@ services:
ibzuaa-provider-api: ibzuaa-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest
ports: ports:
- "40002:40002" - "8081:8081"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=40002
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.100.243:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
- SPRING_DATASOURCE_PASSWORD=@6dEfb3@
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- IBIZ_OAUTH2_ENABLE=true
- NACOS=172.16.100.243:8848
- SPRING_CLOUD_NACOS_DISCOVERY_GROUP=ibizdev
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysAppDTO] * 服务DTO对象[SysAppDTO]
*/ */
@Data @Data
@ApiModel("应用")
public class SysAppDTO extends DTOBase implements Serializable { public class SysAppDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("应用标识")
private String id; private String id;
/** /**
...@@ -45,6 +49,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "label") @JSONField(name = "label")
@JsonProperty("label") @JsonProperty("label")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("应用名")
private String label; private String label;
/** /**
...@@ -54,6 +59,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "systemid") @JSONField(name = "systemid")
@JsonProperty("systemid") @JsonProperty("systemid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("系统标识")
private String systemid; private String systemid;
/** /**
...@@ -63,6 +69,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "fullname") @JSONField(name = "fullname")
@JsonProperty("fullname") @JsonProperty("fullname")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("全称")
private String fullname; private String fullname;
/** /**
...@@ -72,6 +79,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "type") @JSONField(name = "type")
@JsonProperty("type") @JsonProperty("type")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("类型")
private String type; private String type;
/** /**
...@@ -81,6 +89,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "group") @JSONField(name = "group")
@JsonProperty("group") @JsonProperty("group")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("分组")
private String group; private String group;
/** /**
...@@ -90,6 +99,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "icon") @JSONField(name = "icon")
@JsonProperty("icon") @JsonProperty("icon")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("图标")
private String icon; private String icon;
/** /**
...@@ -98,6 +108,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -98,6 +108,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "visabled") @JSONField(name = "visabled")
@JsonProperty("visabled") @JsonProperty("visabled")
@ApiModelProperty("可见")
private Integer visabled; private Integer visabled;
/** /**
...@@ -107,6 +118,7 @@ public class SysAppDTO extends DTOBase implements Serializable { ...@@ -107,6 +118,7 @@ public class SysAppDTO extends DTOBase implements Serializable {
@JSONField(name = "addr") @JSONField(name = "addr")
@JsonProperty("addr") @JsonProperty("addr")
@Size(min = 0, max = 300, message = "内容长度必须小于等于[300]") @Size(min = 0, max = 300, message = "内容长度必须小于等于[300]")
@ApiModelProperty("地址")
private String addr; private String addr;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysAuthLogDTO] * 服务DTO对象[SysAuthLogDTO]
*/ */
@Data @Data
@ApiModel("认证日志")
public class SysAuthLogDTO extends DTOBase implements Serializable { public class SysAuthLogDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "logid") @JSONField(name = "logid")
@JsonProperty("logid") @JsonProperty("logid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("标识")
private String logid; private String logid;
/** /**
...@@ -45,6 +49,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "username") @JSONField(name = "username")
@JsonProperty("username") @JsonProperty("username")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户全局名")
private String username; private String username;
/** /**
...@@ -54,6 +59,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户名称")
private String personname; private String personname;
/** /**
...@@ -63,6 +69,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "domain") @JSONField(name = "domain")
@JsonProperty("domain") @JsonProperty("domain")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("域")
private String domain; private String domain;
/** /**
...@@ -72,6 +79,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "authtime" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "authtime" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("authtime") @JsonProperty("authtime")
@ApiModelProperty("认证时间")
private Timestamp authtime; private Timestamp authtime;
/** /**
...@@ -81,6 +89,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "ipaddr") @JSONField(name = "ipaddr")
@JsonProperty("ipaddr") @JsonProperty("ipaddr")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("IP地址")
private String ipaddr; private String ipaddr;
/** /**
...@@ -90,6 +99,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "macaddr") @JSONField(name = "macaddr")
@JsonProperty("macaddr") @JsonProperty("macaddr")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("MAC地址")
private String macaddr; private String macaddr;
/** /**
...@@ -99,6 +109,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -99,6 +109,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "useragent") @JSONField(name = "useragent")
@JsonProperty("useragent") @JsonProperty("useragent")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("客户端")
private String useragent; private String useragent;
/** /**
...@@ -108,6 +119,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable { ...@@ -108,6 +119,7 @@ public class SysAuthLogDTO extends DTOBase implements Serializable {
@JSONField(name = "authcode") @JSONField(name = "authcode")
@JsonProperty("authcode") @JsonProperty("authcode")
@Size(min = 0, max = 15, message = "内容长度必须小于等于[15]") @Size(min = 0, max = 15, message = "内容长度必须小于等于[15]")
@ApiModelProperty("认证结果")
private String authcode; private String authcode;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysOpenAccessDTO] * 服务DTO对象[SysOpenAccessDTO]
*/ */
@Data @Data
@ApiModel("第三方认证平台")
public class SysOpenAccessDTO extends DTOBase implements Serializable { public class SysOpenAccessDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("开放平台接入标识")
private String id; private String id;
/** /**
...@@ -45,6 +49,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("开放平台")
private String name; private String name;
/** /**
...@@ -54,6 +59,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "open_type") @JSONField(name = "open_type")
@JsonProperty("open_type") @JsonProperty("open_type")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("开放平台类型")
private String openType; private String openType;
/** /**
...@@ -63,6 +69,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "access_key") @JSONField(name = "access_key")
@JsonProperty("access_key") @JsonProperty("access_key")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("AccessKey(AppId)")
private String accessKey; private String accessKey;
/** /**
...@@ -72,6 +79,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "secret_key") @JSONField(name = "secret_key")
@JsonProperty("secret_key") @JsonProperty("secret_key")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("SecretKey(AppSecret)")
private String secretKey; private String secretKey;
/** /**
...@@ -81,6 +89,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "region_id") @JSONField(name = "region_id")
@JsonProperty("region_id") @JsonProperty("region_id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("RegionId")
private String regionId; private String regionId;
/** /**
...@@ -90,6 +99,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "access_token") @JSONField(name = "access_token")
@JsonProperty("access_token") @JsonProperty("access_token")
@Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]") @Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]")
@ApiModelProperty("管理账号token")
private String accessToken; private String accessToken;
/** /**
...@@ -99,6 +109,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -99,6 +109,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "expires_time" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "expires_time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("expires_time") @JsonProperty("expires_time")
@ApiModelProperty("管理账号token过期时间")
private Timestamp expiresTime; private Timestamp expiresTime;
/** /**
...@@ -107,6 +118,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -107,6 +118,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "disabled") @JSONField(name = "disabled")
@JsonProperty("disabled") @JsonProperty("disabled")
@ApiModelProperty("是否禁用")
private Integer disabled; private Integer disabled;
/** /**
...@@ -116,6 +128,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -116,6 +128,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "redirect_uri") @JSONField(name = "redirect_uri")
@JsonProperty("redirect_uri") @JsonProperty("redirect_uri")
@Size(min = 0, max = 500, message = "内容长度必须小于等于[500]") @Size(min = 0, max = 500, message = "内容长度必须小于等于[500]")
@ApiModelProperty("RedirectURI")
private String redirectUri; private String redirectUri;
/** /**
...@@ -125,6 +138,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -125,6 +138,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "notify_url") @JSONField(name = "notify_url")
@JsonProperty("notify_url") @JsonProperty("notify_url")
@Size(min = 0, max = 500, message = "内容长度必须小于等于[500]") @Size(min = 0, max = 500, message = "内容长度必须小于等于[500]")
@ApiModelProperty("NotifyUrl")
private String notifyUrl; private String notifyUrl;
/** /**
...@@ -134,6 +148,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable { ...@@ -134,6 +148,7 @@ public class SysOpenAccessDTO extends DTOBase implements Serializable {
@JSONField(name = "agent_id") @JSONField(name = "agent_id")
@JsonProperty("agent_id") @JsonProperty("agent_id")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
@ApiModelProperty("AGENT_ID")
private Long agentId; private Long agentId;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysPermissionDTO] * 服务DTO对象[SysPermissionDTO]
*/ */
@Data @Data
@ApiModel("权限/资源")
public class SysPermissionDTO extends DTOBase implements Serializable { public class SysPermissionDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "permissionid") @JSONField(name = "permissionid")
@JsonProperty("permissionid") @JsonProperty("permissionid")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("资源标识")
private String permissionid; private String permissionid;
/** /**
...@@ -45,6 +49,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "permissionname") @JSONField(name = "permissionname")
@JsonProperty("permissionname") @JsonProperty("permissionname")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("资源名称")
private String permissionname; private String permissionname;
/** /**
...@@ -54,6 +59,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "permissiontype") @JSONField(name = "permissiontype")
@JsonProperty("permissiontype") @JsonProperty("permissiontype")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]") @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
@ApiModelProperty("资源类别")
private String permissiontype; private String permissiontype;
/** /**
...@@ -63,6 +69,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "pssystemid") @JSONField(name = "pssystemid")
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("系统")
private String pssystemid; private String pssystemid;
/** /**
...@@ -71,6 +78,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable { ...@@ -71,6 +78,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "enable") @JSONField(name = "enable")
@JsonProperty("enable") @JsonProperty("enable")
@ApiModelProperty("逻辑有效")
private Integer enable; private Integer enable;
/** /**
...@@ -80,6 +88,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable { ...@@ -80,6 +88,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
...@@ -89,6 +98,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable { ...@@ -89,6 +98,7 @@ public class SysPermissionDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysRoleDTO] * 服务DTO对象[SysRoleDTO]
*/ */
@Data @Data
@ApiModel("系统角色")
public class SysRoleDTO extends DTOBase implements Serializable { public class SysRoleDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "roleid") @JSONField(name = "roleid")
@JsonProperty("roleid") @JsonProperty("roleid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("角色标识")
private String roleid; private String roleid;
/** /**
...@@ -45,6 +49,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "rolename") @JSONField(name = "rolename")
@JsonProperty("rolename") @JsonProperty("rolename")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("角色名称")
private String rolename; private String rolename;
/** /**
...@@ -54,6 +59,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "memo") @JSONField(name = "memo")
@JsonProperty("memo") @JsonProperty("memo")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("备注")
private String memo; private String memo;
/** /**
...@@ -63,6 +69,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "proleid") @JSONField(name = "proleid")
@JsonProperty("proleid") @JsonProperty("proleid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("父角色标识")
private String proleid; private String proleid;
/** /**
...@@ -72,6 +79,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "prolename") @JSONField(name = "prolename")
@JsonProperty("prolename") @JsonProperty("prolename")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("父角色名称")
private String prolename; private String prolename;
/** /**
...@@ -81,6 +89,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
...@@ -90,6 +99,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
/** /**
...@@ -99,6 +109,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -99,6 +109,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "createman") @JSONField(name = "createman")
@JsonProperty("createman") @JsonProperty("createman")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]") @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
@ApiModelProperty("建立人")
private String createman; private String createman;
/** /**
...@@ -108,6 +119,7 @@ public class SysRoleDTO extends DTOBase implements Serializable { ...@@ -108,6 +119,7 @@ public class SysRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "updateman") @JSONField(name = "updateman")
@JsonProperty("updateman") @JsonProperty("updateman")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]") @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
@ApiModelProperty("更新人")
private String updateman; private String updateman;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysRolePermissionDTO] * 服务DTO对象[SysRolePermissionDTO]
*/ */
@Data @Data
@ApiModel("角色权限关系")
public class SysRolePermissionDTO extends DTOBase implements Serializable { public class SysRolePermissionDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "rolepermissionid") @JSONField(name = "rolepermissionid")
@JsonProperty("rolepermissionid") @JsonProperty("rolepermissionid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("角色权限关系表标识")
private String rolepermissionid; private String rolepermissionid;
/** /**
...@@ -45,6 +49,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "roleid") @JSONField(name = "roleid")
@JsonProperty("roleid") @JsonProperty("roleid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("角色表标识")
private String roleid; private String roleid;
/** /**
...@@ -54,6 +59,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "rolename") @JSONField(name = "rolename")
@JsonProperty("rolename") @JsonProperty("rolename")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("角色名称")
private String rolename; private String rolename;
/** /**
...@@ -63,6 +69,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "permissionid") @JSONField(name = "permissionid")
@JsonProperty("permissionid") @JsonProperty("permissionid")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("权限表标识")
private String permissionid; private String permissionid;
/** /**
...@@ -72,6 +79,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "permissionname") @JSONField(name = "permissionname")
@JsonProperty("permissionname") @JsonProperty("permissionname")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("权限名称")
private String permissionname; private String permissionname;
/** /**
...@@ -81,6 +89,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JSONField(name = "permissiontype") @JSONField(name = "permissiontype")
@JsonProperty("permissiontype") @JsonProperty("permissiontype")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]") @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
@ApiModelProperty("权限类型")
private String permissiontype; private String permissiontype;
/** /**
...@@ -89,6 +98,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -89,6 +98,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "permissionenable") @JSONField(name = "permissionenable")
@JsonProperty("permissionenable") @JsonProperty("permissionenable")
@ApiModelProperty("权限类型")
private Integer permissionenable; private Integer permissionenable;
/** /**
...@@ -98,6 +108,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -98,6 +108,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
...@@ -107,6 +118,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable { ...@@ -107,6 +118,7 @@ public class SysRolePermissionDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysUserAuthDTO] * 服务DTO对象[SysUserAuthDTO]
*/ */
@Data @Data
@ApiModel("账号绑定")
public class SysUserAuthDTO extends DTOBase implements Serializable { public class SysUserAuthDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("标识")
private String id; private String id;
/** /**
...@@ -45,6 +49,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable {
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
...@@ -54,6 +59,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable {
@JSONField(name = "identity_type") @JSONField(name = "identity_type")
@JsonProperty("identity_type") @JsonProperty("identity_type")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("认证类型")
private String identityType; private String identityType;
/** /**
...@@ -63,6 +69,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable {
@JSONField(name = "identifier") @JSONField(name = "identifier")
@JsonProperty("identifier") @JsonProperty("identifier")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("认证标识")
private String identifier; private String identifier;
/** /**
...@@ -72,6 +79,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable {
@JSONField(name = "credential") @JSONField(name = "credential")
@JsonProperty("credential") @JsonProperty("credential")
@Size(min = 0, max = 500, message = "内容长度必须小于等于[500]") @Size(min = 0, max = 500, message = "内容长度必须小于等于[500]")
@ApiModelProperty("凭据")
private String credential; private String credential;
/** /**
...@@ -81,6 +89,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysUserAuthDTO extends DTOBase implements Serializable {
@JSONField(name = "username") @JSONField(name = "username")
@JsonProperty("username") @JsonProperty("username")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("人员")
private String username; private String username;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysUserDTO] * 服务DTO对象[SysUserDTO]
*/ */
@Data @Data
@ApiModel("系统用户")
public class SysUserDTO extends DTOBase implements Serializable { public class SysUserDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
...@@ -45,6 +49,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "username") @JSONField(name = "username")
@JsonProperty("username") @JsonProperty("username")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("用户全局名")
private String username; private String username;
/** /**
...@@ -54,6 +59,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户姓名")
private String personname; private String personname;
/** /**
...@@ -64,6 +70,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -64,6 +70,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JsonProperty("usercode") @JsonProperty("usercode")
@NotBlank(message = "[用户工号]不允许为空!") @NotBlank(message = "[用户工号]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户工号")
private String usercode; private String usercode;
/** /**
...@@ -73,6 +80,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -73,6 +80,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "password") @JSONField(name = "password")
@JsonProperty("password") @JsonProperty("password")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("密码")
private String password; private String password;
/** /**
...@@ -83,6 +91,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -83,6 +91,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JsonProperty("loginname") @JsonProperty("loginname")
@NotBlank(message = "[登录名]不允许为空!") @NotBlank(message = "[登录名]不允许为空!")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("登录名")
private String loginname; private String loginname;
/** /**
...@@ -92,6 +101,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -92,6 +101,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "domains") @JSONField(name = "domains")
@JsonProperty("domains") @JsonProperty("domains")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("区属")
private String domains; private String domains;
/** /**
...@@ -101,6 +111,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -101,6 +111,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptid") @JSONField(name = "mdeptid")
@JsonProperty("mdeptid") @JsonProperty("mdeptid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门")
private String mdeptid; private String mdeptid;
/** /**
...@@ -110,6 +121,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -110,6 +121,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptcode") @JSONField(name = "mdeptcode")
@JsonProperty("mdeptcode") @JsonProperty("mdeptcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门代码")
private String mdeptcode; private String mdeptcode;
/** /**
...@@ -119,6 +131,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -119,6 +131,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门名称")
private String mdeptname; private String mdeptname;
/** /**
...@@ -128,6 +141,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -128,6 +141,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "bcode") @JSONField(name = "bcode")
@JsonProperty("bcode") @JsonProperty("bcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("业务编码")
private String bcode; private String bcode;
/** /**
...@@ -137,6 +151,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -137,6 +151,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "postid") @JSONField(name = "postid")
@JsonProperty("postid") @JsonProperty("postid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("岗位标识")
private String postid; private String postid;
/** /**
...@@ -146,6 +161,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -146,6 +161,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "postcode") @JSONField(name = "postcode")
@JsonProperty("postcode") @JsonProperty("postcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("岗位代码")
private String postcode; private String postcode;
/** /**
...@@ -155,6 +171,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -155,6 +171,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "postname") @JSONField(name = "postname")
@JsonProperty("postname") @JsonProperty("postname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("岗位名称")
private String postname; private String postname;
/** /**
...@@ -164,6 +181,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -164,6 +181,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位")
private String orgid; private String orgid;
/** /**
...@@ -173,6 +191,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -173,6 +191,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "orgcode") @JSONField(name = "orgcode")
@JsonProperty("orgcode") @JsonProperty("orgcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位代码")
private String orgcode; private String orgcode;
/** /**
...@@ -182,6 +201,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -182,6 +201,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位名称")
private String orgname; private String orgname;
/** /**
...@@ -191,6 +211,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -191,6 +211,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "nickname") @JSONField(name = "nickname")
@JsonProperty("nickname") @JsonProperty("nickname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("昵称别名")
private String nickname; private String nickname;
/** /**
...@@ -200,6 +221,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -200,6 +221,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "sex") @JSONField(name = "sex")
@JsonProperty("sex") @JsonProperty("sex")
@Size(min = 0, max = 20, message = "内容长度必须小于等于[20]") @Size(min = 0, max = 20, message = "内容长度必须小于等于[20]")
@ApiModelProperty("性别")
private String sex; private String sex;
/** /**
...@@ -209,6 +231,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -209,6 +231,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
@JSONField(name = "birthday" , format="yyyy-MM-dd") @JSONField(name = "birthday" , format="yyyy-MM-dd")
@JsonProperty("birthday") @JsonProperty("birthday")
@ApiModelProperty("出生日期")
private Timestamp birthday; private Timestamp birthday;
/** /**
...@@ -218,6 +241,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -218,6 +241,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "certcode") @JSONField(name = "certcode")
@JsonProperty("certcode") @JsonProperty("certcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("证件号码")
private String certcode; private String certcode;
/** /**
...@@ -227,6 +251,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -227,6 +251,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "phone") @JSONField(name = "phone")
@JsonProperty("phone") @JsonProperty("phone")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("联系方式")
private String phone; private String phone;
/** /**
...@@ -236,6 +261,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -236,6 +261,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "email") @JSONField(name = "email")
@JsonProperty("email") @JsonProperty("email")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("邮件")
private String email; private String email;
/** /**
...@@ -245,6 +271,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -245,6 +271,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "avatar") @JSONField(name = "avatar")
@JsonProperty("avatar") @JsonProperty("avatar")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("社交账号")
private String avatar; private String avatar;
/** /**
...@@ -254,6 +281,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -254,6 +281,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "addr") @JSONField(name = "addr")
@JsonProperty("addr") @JsonProperty("addr")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]") @Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("地址")
private String addr; private String addr;
/** /**
...@@ -263,6 +291,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -263,6 +291,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "usericon") @JSONField(name = "usericon")
@JsonProperty("usericon") @JsonProperty("usericon")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]") @Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("照片")
private String usericon; private String usericon;
/** /**
...@@ -272,6 +301,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -272,6 +301,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "theme") @JSONField(name = "theme")
@JsonProperty("theme") @JsonProperty("theme")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("样式")
private String theme; private String theme;
/** /**
...@@ -281,6 +311,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -281,6 +311,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "lang") @JSONField(name = "lang")
@JsonProperty("lang") @JsonProperty("lang")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("语言")
private String lang; private String lang;
/** /**
...@@ -290,6 +321,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -290,6 +321,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "fontsize") @JSONField(name = "fontsize")
@JsonProperty("fontsize") @JsonProperty("fontsize")
@Size(min = 0, max = 10, message = "内容长度必须小于等于[10]") @Size(min = 0, max = 10, message = "内容长度必须小于等于[10]")
@ApiModelProperty("字号")
private String fontsize; private String fontsize;
/** /**
...@@ -299,6 +331,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -299,6 +331,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "memo") @JSONField(name = "memo")
@JsonProperty("memo") @JsonProperty("memo")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]") @Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("备注")
private String memo; private String memo;
/** /**
...@@ -308,6 +341,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -308,6 +341,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
@JSONField(name = "reserver") @JSONField(name = "reserver")
@JsonProperty("reserver") @JsonProperty("reserver")
@Size(min = 0, max = 255, message = "内容长度必须小于等于[255]") @Size(min = 0, max = 255, message = "内容长度必须小于等于[255]")
@ApiModelProperty("保留")
private String reserver; private String reserver;
/** /**
...@@ -316,6 +350,7 @@ public class SysUserDTO extends DTOBase implements Serializable { ...@@ -316,6 +350,7 @@ public class SysUserDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "superuser") @JSONField(name = "superuser")
@JsonProperty("superuser") @JsonProperty("superuser")
@ApiModelProperty("超级管理员")
private Integer superuser; private Integer superuser;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[SysUserRoleDTO] * 服务DTO对象[SysUserRoleDTO]
*/ */
@Data @Data
@ApiModel("用户角色关系")
public class SysUserRoleDTO extends DTOBase implements Serializable { public class SysUserRoleDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "userroleid") @JSONField(name = "userroleid")
@JsonProperty("userroleid") @JsonProperty("userroleid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户角色关系标识")
private String userroleid; private String userroleid;
/** /**
...@@ -45,6 +49,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "roleid") @JSONField(name = "roleid")
@JsonProperty("roleid") @JsonProperty("roleid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("角色标识")
private String roleid; private String roleid;
/** /**
...@@ -54,6 +59,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "rolename") @JSONField(name = "rolename")
@JsonProperty("rolename") @JsonProperty("rolename")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("角色名称")
private String rolename; private String rolename;
/** /**
...@@ -63,6 +69,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
...@@ -72,6 +79,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户名称")
private String personname; private String personname;
/** /**
...@@ -81,6 +89,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "loginname") @JSONField(name = "loginname")
@JsonProperty("loginname") @JsonProperty("loginname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("登录名")
private String loginname; private String loginname;
/** /**
...@@ -90,6 +99,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位")
private String orgname; private String orgname;
/** /**
...@@ -99,6 +109,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -99,6 +109,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门")
private String mdeptname; private String mdeptname;
/** /**
...@@ -108,6 +119,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -108,6 +119,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
@ApiModelProperty("建立时间")
private Timestamp createdate; private Timestamp createdate;
/** /**
...@@ -117,6 +129,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable { ...@@ -117,6 +129,7 @@ public class SysUserRoleDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
@ApiModelProperty("更新时间")
private Timestamp updatedate; private Timestamp updatedate;
......
...@@ -2,6 +2,7 @@ package cn.ibizlab.util.client; ...@@ -2,6 +2,7 @@ package cn.ibizlab.util.client;
import cn.ibizlab.util.security.AuthenticationUser; import cn.ibizlab.util.security.AuthenticationUser;
import cn.ibizlab.util.security.AuthorizationLogin; import cn.ibizlab.util.security.AuthorizationLogin;
import org.springframework.util.MultiValueMap;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
......
...@@ -5,6 +5,7 @@ import cn.ibizlab.util.security.AuthorizationLogin; ...@@ -5,6 +5,7 @@ import cn.ibizlab.util.security.AuthorizationLogin;
import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Cacheable;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.util.MultiValueMap;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@FeignClient(value = "${ibiz.ref.service.uaa:ibzuaa-api}",contextId = "uaa",fallback = IBZUAAFallback.class) @FeignClient(value = "${ibiz.ref.service.uaa:ibzuaa-api}",contextId = "uaa",fallback = IBZUAAFallback.class)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册