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 6413000b
authored
Jul 17, 2021
by
wangnb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账户体系远程调用接口基础搭建--think.wang
1 parent
86832a5c
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
352 additions
and
0 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/request/accounttype/AccountTypeDeleteRequest.java
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeListSearchRequest.java
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeSaveRequest.java
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeSearchRequest.java
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeUpdateRequest.java
src/main/java/cn/com/glsx/merchants/request/role/RoleDeleteRequest.java
src/main/java/cn/com/glsx/merchants/request/role/RoleListSearchRequest.java
src/main/java/cn/com/glsx/merchants/request/role/RoleSaveRequest.java
src/main/java/cn/com/glsx/merchants/request/role/RoleSearchRequest.java
src/main/java/cn/com/glsx/merchants/request/role/RoleUpdateRequest.java
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
src/main/java/cn/com/glsx/merchants/controller/MerchantAccountTypeController.java
View file @
6413000
...
@@ -9,6 +9,7 @@ import com.rop.annotation.ServiceMethod;
...
@@ -9,6 +9,7 @@ import com.rop.annotation.ServiceMethod;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
/**
/**
...
@@ -17,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -17,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* @description: 账户类型接口
* @description: 账户类型接口
* @date 2021/7/13 10:00
* @date 2021/7/13 10:00
*/
*/
@Slf4j
@Api
(
"账户类型接口"
)
@Api
(
"账户类型接口"
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
public
class
MerchantAccountTypeController
{
public
class
MerchantAccountTypeController
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantRoleController.java
View file @
6413000
...
@@ -9,6 +9,7 @@ import com.rop.annotation.ServiceMethod;
...
@@ -9,6 +9,7 @@ import com.rop.annotation.ServiceMethod;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
/**
/**
...
@@ -17,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -17,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* @description: 角色管理接口
* @description: 角色管理接口
* @date 2021/7/13 10:00
* @date 2021/7/13 10:00
*/
*/
@Slf4j
@Api
(
"角色管理接口"
)
@Api
(
"角色管理接口"
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
public
class
MerchantRoleController
{
public
class
MerchantRoleController
{
...
...
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeDeleteRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
accounttype
;
import
cn.com.glsx.merchants.request.DefaultRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
AccountTypeDeleteRequest
extends
DefaultRequest
{
@NotNull
@ApiModelProperty
(
notes
=
"id"
,
required
=
true
)
private
Integer
id
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeListSearchRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
accounttype
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
AccountTypeListSearchRequest
extends
AbstractRopRequest
{
/**
* 账户类型名称
*/
@ApiModelProperty
(
notes
=
"账户类型名称"
)
private
String
accounttypeName
;
@NotNull
@ApiModelProperty
(
notes
=
"分页数"
,
required
=
true
)
private
Integer
pageSize
;
@NotNull
@ApiModelProperty
(
notes
=
"当前页"
,
required
=
true
)
private
Integer
pageNumber
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeSaveRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
accounttype
;
import
cn.com.glsx.merchants.model.request.AccountFunctionRelationRequest
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@Data
public
class
AccountTypeSaveRequest
extends
AbstractRopRequest
{
/**
* 账户类型名称
*/
@NotNull
@ApiModelProperty
(
notes
=
"账户类型名称"
,
required
=
true
)
private
String
accounttypeName
;
/**
* 描述
*/
private
String
accounttypeDetail
;
/**
* 创建人
*/
private
Integer
createdBy
;
/**
* 账户类型编码
*/
private
String
accounttypeCode
;
/**
* 创建账户
*/
private
String
createdAccount
;
/**
* 功能关系数据
*/
private
List
<
AccountFunctionRelationRequest
>
functionList
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeSearchRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
accounttype
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
AccountTypeSearchRequest
extends
AbstractRopRequest
{
@NotNull
@ApiModelProperty
(
notes
=
"id"
,
required
=
true
)
private
Integer
id
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeUpdateRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
accounttype
;
import
cn.com.glsx.merchants.model.request.AccountFunctionRelationRequest
;
import
com.rop.AbstractRopRequest
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
AccountTypeUpdateRequest
extends
AbstractRopRequest
{
private
Integer
id
;
/**
* 账户类型名称
*/
private
String
accounttypeName
;
/**
* 描述
*/
private
String
accounttypeDetail
;
/**
* 创建人
*/
private
Integer
createdBy
;
/**
* 更新人
*/
private
Integer
updatedBy
;
/**
* 是否删除:0=正常,-1=删除 2.草稿
*/
private
Byte
delFlag
;
/**
* 账户类型编码
*/
private
String
accounttypeCode
;
/**
* 创建账户
*/
private
String
createdAccount
;
/**
* 更新账户
*/
private
String
updatedAccount
;
/**
* 功能关系数据
*/
private
List
<
AccountFunctionRelationRequest
>
functionList
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/role/RoleDeleteRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
role
;
import
cn.com.glsx.merchants.request.DefaultRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
RoleDeleteRequest
extends
DefaultRequest
{
@NotNull
@ApiModelProperty
(
notes
=
"id"
,
required
=
true
)
private
Integer
id
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/role/RoleListSearchRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
role
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
RoleListSearchRequest
extends
AbstractRopRequest
{
/**
* 角色名称
*/
private
String
roleName
;
/**
* 所属商户id
*/
@NotNull
@ApiModelProperty
(
notes
=
"所属商户id"
,
required
=
true
)
private
Integer
merchantId
;
@NotNull
@ApiModelProperty
(
notes
=
"分页数"
,
required
=
true
)
private
Integer
pageSize
;
@NotNull
@ApiModelProperty
(
notes
=
"当前页"
,
required
=
true
)
private
Integer
pageNumber
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/role/RoleSaveRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
role
;
import
cn.com.glsx.merchants.model.request.RoleAccountRelationRequest
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@Data
public
class
RoleSaveRequest
extends
AbstractRopRequest
{
/**
* 角色名称
*/
@NotNull
@ApiModelProperty
(
notes
=
"角色名称"
,
required
=
true
)
private
String
roleName
;
/**
* 角色描述
*/
private
String
roleDescription
;
/**
* 所属商户id
*/
private
Integer
merchantId
;
/**
* 创建时间
*/
private
Integer
createdBy
;
/**
* 创建账户
*/
private
String
createdAccount
;
/**
* 角色关联账户类型列表
*/
private
List
<
RoleAccountRelationRequest
>
accountList
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/role/RoleSearchRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
role
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
RoleSearchRequest
extends
AbstractRopRequest
{
@NotNull
@ApiModelProperty
(
notes
=
"id"
,
required
=
true
)
private
Integer
id
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/role/RoleUpdateRequest.java
0 → 100644
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
request
.
role
;
import
cn.com.glsx.merchants.model.request.RoleAccountRelationRequest
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@Data
public
class
RoleUpdateRequest
extends
AbstractRopRequest
{
@NotNull
@ApiModelProperty
(
notes
=
"id"
,
required
=
true
)
private
Integer
id
;
/**
* 角色名称
*/
@NotNull
@ApiModelProperty
(
notes
=
"角色名称"
,
required
=
true
)
private
String
roleName
;
/**
* 角色描述
*/
private
String
roleDescription
;
/**
* 所属商户id
*/
private
Integer
merchantId
;
/**
* 创建时间
*/
private
Integer
createdBy
;
/**
* 更新人
*/
private
Integer
updatedBy
;
/**
* 创建账户
*/
private
String
createdAccount
;
/**
* 更新账户
*/
private
String
updatedAccount
;
/**
* 角色关联账户类型列表
*/
private
List
<
RoleAccountRelationRequest
>
accountList
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
View file @
6413000
package
cn
.
com
.
glsx
.
merchants
.
service
;
package
cn
.
com
.
glsx
.
merchants
.
service
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.merchants.model.response.MerchantAccountTypeResponse
;
import
cn.com.glsx.merchants.remote.MerchantAccountTypeRemote
;
import
cn.com.glsx.merchants.remote.MerchantAccountTypeRemote
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -19,5 +21,16 @@ public class MerchantAccountTypeService {
...
@@ -19,5 +21,16 @@ public class MerchantAccountTypeService {
@Resource
@Resource
private
MerchantAccountTypeRemote
merchantAccountTypeRemote
;
private
MerchantAccountTypeRemote
merchantAccountTypeRemote
;
/**
* 获取账户类型详情
*
* @param id
* @return
*/
public
RpcResponse
<
MerchantAccountTypeResponse
>
getAccountTypeDetail
(
Integer
id
)
{
//获取主表数据
RpcResponse
<
MerchantAccountTypeResponse
>
response
=
merchantAccountTypeRemote
.
getByIdRemote
(
id
);
return
response
;
}
}
}
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