Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengtianlai3
ioc_sixiang_license
Commits
92925eea
Commit
92925eea
authored
Jun 16, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善字段注释
parent
3631b2dd
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
45 additions
and
27 deletions
+45
-27
SysOperLog.java
.../src/main/java/iot/sixiang/license/entity/SysOperLog.java
+10
-24
BaseResult.java
...e/src/main/java/iot/sixiang/license/model/BaseResult.java
+5
-0
Device.java
license/src/main/java/iot/sixiang/license/model/Device.java
+6
-1
PageInfoModel.java
...rc/main/java/iot/sixiang/license/model/PageInfoModel.java
+4
-0
PageResult.java
...e/src/main/java/iot/sixiang/license/model/PageResult.java
+7
-0
ResResult.java
...se/src/main/java/iot/sixiang/license/model/ResResult.java
+4
-0
SamInfo.java
license/src/main/java/iot/sixiang/license/model/SamInfo.java
+4
-0
SamMonitor.java
...e/src/main/java/iot/sixiang/license/model/SamMonitor.java
+4
-0
SessionContext.java
...c/main/java/iot/sixiang/license/model/SessionContext.java
+1
-2
No files found.
license/src/main/java/iot/sixiang/license/entity/SysOperLog.java
View file @
92925eea
...
@@ -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
;
...
...
license/src/main/java/iot/sixiang/license/model/BaseResult.java
View file @
92925eea
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
)
{
...
...
license/src/main/java/iot/sixiang/license/model/Device.java
View file @
92925eea
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
;
@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
}
}
license/src/main/java/iot/sixiang/license/model/PageInfoModel.java
View file @
92925eea
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
>();
}
}
license/src/main/java/iot/sixiang/license/model/PageResult.java
View file @
92925eea
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
;
...
...
license/src/main/java/iot/sixiang/license/model/ResResult.java
View file @
92925eea
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
)
{
...
...
license/src/main/java/iot/sixiang/license/model/SamInfo.java
View file @
92925eea
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
;
}
}
license/src/main/java/iot/sixiang/license/model/SamMonitor.java
View file @
92925eea
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
;
}
}
license/src/main/java/iot/sixiang/license/model/SessionContext.java
View file @
92925eea
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment