Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 449e975b
authored
Jul 23, 2021
by
wangnb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账户体系账户类型、角色管理session非必传--think.wang
1 parent
fab371b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
src/main/java/cn/com/glsx/merchants/controller/MerchantAccountTypeController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantRoleController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantAccountTypeController.java
View file @
449e975
...
...
@@ -26,7 +26,7 @@ import java.util.List;
*/
@Slf4j
@Api
(
"账户类型接口"
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
NO
)
public
class
MerchantAccountTypeController
{
@Autowired
...
...
@@ -41,7 +41,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.accountType.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.accountType.list"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型获取列表接口"
)
public
RopResponse
<
List
<
AccountTypeResponse
>>
getAccountTypeList
(
AccountTypeListSearchRequest
request
)
{
try
{
...
...
@@ -58,7 +58,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.accountType.page"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.accountType.page"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型获取分页数据接口"
)
public
RopResponse
<
Pagination
<
AccountTypeResponse
>>
getAccountTypePage
(
AccountTypeListSearchRequest
request
)
{
try
{
...
...
@@ -75,7 +75,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.accountType.getById"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.accountType.getById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取账户类型接口"
)
public
RopResponse
<
AccountTypeResponse
>
getById
(
AccountTypeSearchRequest
request
)
{
try
{
...
...
@@ -92,7 +92,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.accountType.deleteById"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.accountType.deleteById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取账户类型接口"
)
public
RopResponse
<
Boolean
>
deleteById
(
AccountTypeDeleteRequest
request
)
{
merchantUserService
.
setUser
(
request
);
...
...
@@ -110,7 +110,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.accountType.insert"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.accountType.insert"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型新增接口"
)
public
RopResponse
<
Boolean
>
insert
(
AccountTypeInsertRequest
request
)
{
log
.
info
(
"账户类型保存数据:{}"
,
JSON
.
toJSONString
(
request
));
...
...
@@ -129,7 +129,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.accountType.update"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.accountType.update"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型更新接口"
)
public
RopResponse
<
Boolean
>
update
(
AccountTypeUpdateRequest
request
)
{
log
.
info
(
"账户类型更新数据:{}"
,
JSON
.
toJSONString
(
request
));
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantRoleController.java
View file @
449e975
...
...
@@ -2,7 +2,6 @@ package cn.com.glsx.merchants.controller;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.model.response.MerchantRoleResponse
;
import
cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest
;
import
cn.com.glsx.merchants.request.role.RoleDeleteRequest
;
import
cn.com.glsx.merchants.request.role.RoleInsertRequest
;
...
...
@@ -31,7 +30,7 @@ import java.util.List;
*/
@Slf4j
@Api
(
"角色管理接口"
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
NO
)
public
class
MerchantRoleController
{
@Autowired
...
...
@@ -46,7 +45,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.role.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.role.list"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理获取列表接口"
)
public
RopResponse
<
List
<
RoleResponse
>>
getRoleList
(
RoleListSearchRequest
request
)
{
try
{
...
...
@@ -63,7 +62,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.role.page"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.role.page"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理获取分页数据接口"
)
public
RopResponse
<
Pagination
<
RoleResponse
>>
getRolePage
(
RoleListSearchRequest
request
)
{
try
{
...
...
@@ -80,7 +79,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.role.getById"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.role.getById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取角色管理接口"
)
public
RopResponse
<
RoleResponse
>
getById
(
AccountTypeSearchRequest
request
)
{
try
{
...
...
@@ -97,7 +96,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.role.deleteById"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.role.deleteById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取角色管理接口"
)
public
RopResponse
<
Boolean
>
deleteById
(
RoleDeleteRequest
request
)
{
merchantUserService
.
setUser
(
request
);
...
...
@@ -115,7 +114,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.role.insert"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.role.insert"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理新增接口"
)
public
RopResponse
<
Boolean
>
insert
(
RoleInsertRequest
request
)
{
log
.
info
(
"角色管理保存数据:{}"
,
JSON
.
toJSONString
(
request
));
...
...
@@ -134,7 +133,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"org.ore.api.role.update"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"org.ore.api.role.update"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理更新接口"
)
public
RopResponse
<
Boolean
>
update
(
RoleUpdateRequest
request
)
{
log
.
info
(
"角色管理更新数据:{}"
,
JSON
.
toJSONString
(
request
));
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment