Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
063b1b86
Commit
063b1b86
authored
Nov 24, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小红书数据页面运营权限添加
parent
ff34e008
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/XhsController.java
...main/java/com/wwdz/ch/admin/controller/XhsController.java
+6
-10
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/XhsController.java
View file @
063b1b86
package
com.wwdz.ch.admin.controller
;
package
com.wwdz.ch.admin.controller
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.admin.annotation.RequiresPermissionsDesc
;
import
com.wwdz.ch.admin.annotation.RequiresPermissionsDesc
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.entity.im.SendChatMsgRequestDto
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.xxdxxs.utils.StringUtils
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/admin/xhs"
)
public
class
XhsController
{
public
class
XhsController
{
@RequiresPermissions
(
"admin:xhs:find"
)
@RequiresPermissions
(
"admin:xhs:find"
)
@RequiresPermissionsDesc
(
menu
=
{
"小红书测试接口"
,
"小红书测试接口"
},
button
=
"测试"
)
@RequiresPermissionsDesc
(
menu
=
{
"小红书测试接口"
,
"小红书测试接口"
},
button
=
"测试"
)
@ApiOperation
(
value
=
"小红书测试接口"
)
@ApiOperation
(
value
=
"小红书测试接口"
)
@PostMapping
(
"/admin/xhs/find"
)
@PostMapping
(
"/find"
)
public
Result
sendChatMsg
(
@RequestBody
SendChatMsgRequestDto
dto
)
{
public
Result
find
()
{
if
(!
StringUtils
.
isAllNotEmpty
(
dto
.
getFromAccount
(),
dto
.
getToAccount
(),
dto
.
getMsgType
(),
dto
.
getReqId
()))
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
return
Result
.
success
();
return
Result
.
success
();
}
}
}
}
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