Commit 92925eea authored by zengtianlai3's avatar zengtianlai3

完善字段注释

parent 3631b2dd
...@@ -2,6 +2,7 @@ package iot.sixiang.license.entity; ...@@ -2,6 +2,7 @@ package iot.sixiang.license.entity;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
...@@ -24,44 +25,29 @@ public class SysOperLog implements Serializable { ...@@ -24,44 +25,29 @@ public class SysOperLog implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 日志主键
*/
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty("主键Id")
private Integer id; private Integer id;
/** @ApiModelProperty("模块标题")
* 模块标题
*/
private String title; private String title;
/**
* 参数 @ApiModelProperty("参数")
*/
private String optParam; private String optParam;
/** @ApiModelProperty("业务类型(0其它 1新增 2修改 3删除)")
* 业务类型(0其它 1新增 2修改 3删除)
*/
private Integer businessType; private Integer businessType;
/** @ApiModelProperty("路径名称")
* 路径名称
*/
private String uri; private String uri;
/** @ApiModelProperty("操作状态(0正常 1异常)")
* 操作状态(0正常 1异常)
*/
private Integer status; private Integer status;
/** @ApiModelProperty("错误消息")
* 错误消息
*/
private String errorMsg; private String errorMsg;
/** @ApiModelProperty("操作时间")
* 操作时间
*/
private Date operTime; private Date operTime;
......
package iot.sixiang.license.model; package iot.sixiang.license.model;
import io.swagger.annotations.ApiModelProperty;
import iot.sixiang.license.consts.ResultCode; import iot.sixiang.license.consts.ResultCode;
//@Data //@Data
public class BaseResult { public class BaseResult {
@ApiModelProperty("状态码")
private long code; private long code;
@ApiModelProperty("信息")
private String msg; private String msg;
public BaseResult(long code, String msg) { public BaseResult(long code, String msg) {
......
package iot.sixiang.license.model; package iot.sixiang.license.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
...@@ -7,8 +8,12 @@ import java.io.Serializable; ...@@ -7,8 +8,12 @@ import java.io.Serializable;
@Data @Data
public class Device implements Serializable{ public class Device implements Serializable{
@ApiModelProperty("设备状态码")
private String device_code; private String device_code;
@ApiModelProperty("设备名")
private String device_name; private String device_name;
@ApiModelProperty("密码状态码")
private String pass_code; private String pass_code;
@ApiModelProperty("设备状态 0:offline,1:online")
private int device_status;//0 offline,1 online private int device_status;//0 offline,1 online
} }
package iot.sixiang.license.model; package iot.sixiang.license.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -7,6 +8,9 @@ import java.util.List; ...@@ -7,6 +8,9 @@ import java.util.List;
@Data @Data
public class PageInfoModel<T> { public class PageInfoModel<T> {
@ApiModelProperty("总数")
private int total; private int total;
@ApiModelProperty("结果")
private List<T> result = new ArrayList<T>(); private List<T> result = new ArrayList<T>();
} }
package iot.sixiang.license.model; package iot.sixiang.license.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@Data @Data
public class PageResult<T> { public class PageResult<T> {
@ApiModelProperty("状态码")
private int code; private int code;
@ApiModelProperty("信息")
private String msg; private String msg;
@ApiModelProperty("当前在第几页")
private int pageNo; private int pageNo;
@ApiModelProperty("总页数")
private int pages; private int pages;
@ApiModelProperty("总条数")
private int total; private int total;
@ApiModelProperty("返回结果")
private T record; private T record;
......
package iot.sixiang.license.model; package iot.sixiang.license.model;
import io.swagger.annotations.ApiModelProperty;
import iot.sixiang.license.consts.ResultCode; import iot.sixiang.license.consts.ResultCode;
import lombok.Data; import lombok.Data;
...@@ -13,8 +14,11 @@ import lombok.Data; ...@@ -13,8 +14,11 @@ import lombok.Data;
*/ */
@Data @Data
public class ResResult<T> { public class ResResult<T> {
@ApiModelProperty("状态码")
private long code; private long code;
@ApiModelProperty("信息")
private String msg; private String msg;
@ApiModelProperty("返回结果")
private T record; private T record;
public ResResult(long code, String msg) { public ResResult(long code, String msg) {
......
package iot.sixiang.license.model; package iot.sixiang.license.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
/** /**
...@@ -7,7 +8,10 @@ import lombok.Data; ...@@ -7,7 +8,10 @@ import lombok.Data;
*/ */
@Data @Data
public class SamInfo { public class SamInfo {
@ApiModelProperty("SAM通道序号")
private int index; private int index;
@ApiModelProperty("SAM模组唯一识别码")
private String samid; private String samid;
@ApiModelProperty("SAM模组状态")
private int status; private int status;
} }
package iot.sixiang.license.model; package iot.sixiang.license.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
/** /**
...@@ -7,7 +8,10 @@ import lombok.Data; ...@@ -7,7 +8,10 @@ import lombok.Data;
*/ */
@Data @Data
public class SamMonitor { public class SamMonitor {
@ApiModelProperty("服务Ip")
private String serverIp; private String serverIp;
@ApiModelProperty("sam总数")
private int samCount; private int samCount;
@ApiModelProperty("在线数量")
private int onlineCount; private int onlineCount;
} }
...@@ -3,11 +3,10 @@ package iot.sixiang.license.model; ...@@ -3,11 +3,10 @@ package iot.sixiang.license.model;
import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.SocketChannel;
import lombok.Data; import lombok.Data;
import java.util.Date;
@Data @Data
public class SessionContext { public class SessionContext {
private String remoteIp; private String remoteIp;
private int remotePort; private int remotePort;
private String appId; private String appId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment