Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BYOD
Project
Overview
Details
Activity
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
tutingyin
BYOD
Commits
4e65c777
Commit
4e65c777
authored
May 14, 2024
by
tutingyin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: 创建 管控_PC
parent
14ce6205
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
254 deletions
+48
-254
README.md
README.md
+6
-6
GaodeTerminalQO.java
...an/src/main/java/com/skr/mdm/bean/qo/GaodeTerminalQO.java
+3
-5
EquipmentAddUpdateQO.java
...a/com/skr/mdm/bean/qo/equipment/EquipmentAddUpdateQO.java
+4
-8
SecurityConfig.java
...ient/src/main/java/com/skr/mdm/config/SecurityConfig.java
+24
-111
EquipmentInfoController.java
.../java/com/skr/mdm/controller/EquipmentInfoController.java
+0
-15
UserLogController.java
...c/main/java/com/skr/mdm/controller/UserLogController.java
+11
-109
No files found.
README.md
View file @
4e65c777
## **分支概况**
| 项目名
| 父分支名 | 分支名
| 维护人 | 拉取时间 |
|-----
| -------- | -------
|-----|------------|
|
BYOD| master | | 涂庭银 | 2024-03-01
|
| 项目名
| 父分支名 | 分支名
| 维护人 | 拉取时间 |
|-----
-| -------- |--------
|-----|------------|
|
管控PC | master | mdm_pc | 涂庭银 | 2024-04-12
|
## **项目更新详情**
### 2024年
####
3
月
####
4
月
**20240
301
**
**20240
412
**
1
[
doc
]
add: 项目初始化(source:
管控3.0
)
1
[
doc
]
add: 项目初始化(source:
BYOD
)
## **功能模块**
...
...
mdm_bean/src/main/java/com/skr/mdm/bean/qo/GaodeTerminalQO.java
View file @
4e65c777
...
...
@@ -23,9 +23,6 @@ public class GaodeTerminalQO {
private
String
companyName
;
private
String
imei
;
private
String
serialNum
;
private
String
oaid
;
private
String
uuid
;
}
}
\ No newline at end of file
mdm_bean/src/main/java/com/skr/mdm/bean/qo/equipment/EquipmentAddUpdateQO.java
View file @
4e65c777
...
...
@@ -30,13 +30,8 @@ public class EquipmentAddUpdateQO {
@ApiModelProperty
(
"设备名称"
)
private
String
equipmentName
;
@ApiModelProperty
(
"
imei
"
)
private
String
imei
;
@ApiModelProperty
(
"
serialNum
"
)
private
String
serialNum
;
@ApiModelProperty
(
"uuid"
)
private
String
uuid
;
@ApiModelProperty
(
"oaid"
)
private
String
oaid
;
}
}
\ No newline at end of file
mdm_client/src/main/java/com/skr/mdm/config/SecurityConfig.java
View file @
4e65c777
This diff is collapsed.
Click to expand it.
mdm_client/src/main/java/com/skr/mdm/controller/EquipmentInfoController.java
View file @
4e65c777
...
...
@@ -33,22 +33,7 @@ public class EquipmentInfoController {
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"card/bind"
)
@ApiOperation
(
"机卡绑定解绑"
)
public
ResponseResult
cardBindUnbind
(
@RequestParam
@ApiParam
(
value
=
"绑定解绑参数"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
CARD_BIND_UNBIND
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"card/state"
)
@ApiOperation
(
"机卡绑定状态(0x386)"
)
public
ResponseResult
cardBindUnbind
(
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
CARD_BIND_STATE
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
null
);
}
@PostMapping
(
"delete"
)
@ApiOperation
(
"设备删除"
)
...
...
mdm_client/src/main/java/com/skr/mdm/controller/UserLogController.java
View file @
4e65c777
...
...
@@ -6,17 +6,12 @@ import com.skr.mdm.result.ResponseResult;
import
com.skr.mdm.service.CmdHandlerService
;
import
com.skr.mdm.service.StrategyFactory
;
import
com.skr.mdm.service.impl.equipment.DeviceDebugLogServiceImpl
;
import
com.skr.mdm.service.impl.log.SafeQqServiceImpl
;
import
com.skr.mdm.service.impl.log.SafeWechatServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
springfox.documentation.annotations.ApiIgnore
;
...
...
@@ -30,10 +25,6 @@ import springfox.documentation.annotations.ApiIgnore;
public
class
UserLogController
{
@Autowired
private
SafeWechatServiceImpl
safeWechatService
;
@Autowired
private
SafeQqServiceImpl
safeQqService
;
@Autowired
private
DeviceDebugLogServiceImpl
deviceDebugLogService
;
@PostMapping
(
"upload"
)
...
...
@@ -45,104 +36,6 @@ public class UserLogController {
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"wechat/upload"
)
@ApiOperation
(
"普通系统上传微信日志(0x3DD)"
)
public
ResponseResult
wechatUploadLog
(
@RequestParam
@ApiParam
(
value
=
"数据"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
WECHAT_SEND
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"qq/upload"
)
@ApiOperation
(
"普通系统上传QQ日志(0x3ED)"
)
public
ResponseResult
qqUploadLog
(
@RequestParam
@ApiParam
(
value
=
"数据"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
QQ_SEND
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"wechat/user"
)
@ApiOperation
(
"微信用户信息(0x3E3)"
)
public
ResponseResult
wechatUser
(
@RequestParam
@ApiParam
(
value
=
"微信用户信息"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
WECHAT_USER_UPLOAD
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"safe/wechat"
)
@ApiOperation
(
"安全空间微信聊天记录"
)
public
ResponseResult
safeWechat
(
@RequestParam
@ApiParam
(
value
=
"微信用户信息"
,
required
=
true
)
String
data
,
@RequestParam
(
required
=
false
)
@ApiParam
(
value
=
"微信聊天文件"
,
required
=
false
)
MultipartFile
file
,
@ApiIgnore
Authentication
authentication
)
throws
Exception
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
return
safeWechatService
.
uploadWechatRecord
(
file
,
data
,
loginUserDTO
);
}
@PostMapping
(
"qq/user"
)
@ApiOperation
(
"QQ用户信息(0x3EC)"
)
public
ResponseResult
qqUser
(
@RequestParam
@ApiParam
(
value
=
"QQ用户信息"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
QQ_USER_UPLOAD
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"safe/qq"
)
@ApiOperation
(
"安全空间QQ聊天记录"
)
public
ResponseResult
safeQq
(
@RequestParam
@ApiParam
(
value
=
"QQ用户信息"
,
required
=
true
)
String
data
,
@RequestParam
(
required
=
false
)
@ApiParam
(
value
=
"QQ聊天文件"
,
required
=
false
)
MultipartFile
file
,
@ApiIgnore
Authentication
authentication
)
throws
Exception
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
return
safeQqService
.
uploadQqRecord
(
file
,
data
,
loginUserDTO
);
}
@PostMapping
(
"deal/upload"
)
@ApiOperation
(
"上传交易日志"
)
public
ResponseResult
dealLogUpload
(
@RequestParam
@ApiParam
(
value
=
"数据"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
LOG_DEAL_UPLOAD
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"url/blacklist/upload"
)
@ApiOperation
(
"上传网址黑名单日志(0x3E5)"
)
public
ResponseResult
urlBlacklistUpload
(
@RequestParam
@ApiParam
(
value
=
"数据"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
LOG_URL_BLACKLIST_UPLOAD
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"url/violation/upload"
)
@ApiOperation
(
"上传违规网址日志(0x3E6)"
)
public
ResponseResult
urlViolationUpload
(
@RequestParam
@ApiParam
(
value
=
"数据"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
LOG_URL_VIOLATION_UPLOAD
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"url/bad/upload"
)
@ApiOperation
(
"上传不良网址日志(0x3E7)"
)
public
ResponseResult
urlVisitBadUpload
(
@RequestParam
@ApiParam
(
value
=
"数据"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
LOG_URL_VISIT_BAD_UPLOAD
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"url/upload"
)
@ApiOperation
(
"上传网址访问日志(0x3E8)"
)
public
ResponseResult
urlVisitUpload
(
@RequestParam
@ApiParam
(
value
=
"数据"
,
required
=
true
)
String
data
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
CmdHandlerService
strategy
=
StrategyFactory
.
getStrategy
(
CmdTypeConstants
.
LOG_URL_VISIT_UPLOAD
);
return
strategy
.
cmdHandler
(
loginUserDTO
.
getId
(),
data
);
}
@PostMapping
(
"confirm"
)
@ApiOperation
(
"日志确认"
)
...
...
@@ -158,6 +51,14 @@ public class UserLogController {
public
ResponseResult
debugUploadLog
(
@ApiParam
(
value
=
"文件"
,
required
=
true
)
MultipartFile
file
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
return
deviceDebugLogService
.
upload
(
loginUserDTO
,
file
);
return
deviceDebugLogService
.
upload
(
loginUserDTO
,
"info"
,
file
);
}
@PostMapping
(
"file/upload2"
)
@ApiOperation
(
"调试日志上传"
)
public
ResponseResult
debugUploadLog2
(
@RequestParam
@ApiParam
(
value
=
"文件"
,
required
=
true
)
MultipartFile
file
,
@RequestParam
String
info
,
@ApiIgnore
Authentication
authentication
)
{
LoginUserDTO
loginUserDTO
=
(
LoginUserDTO
)
authentication
.
getPrincipal
();
return
deviceDebugLogService
.
upload
(
loginUserDTO
,
info
,
file
);
}
}
\ No newline at end of file
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