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 353aba15
authored
Nov 23, 2021
by
wangxw1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
rop服务方法名修改
1 parent
5e718fed
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
93 additions
and
93 deletions
src/main/java/cn/com/glsx/merchants/controller/LogController.java
src/main/java/cn/com/glsx/merchants/controller/LoginController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantAccountTypeController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantCommonController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantDictDataController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantDictTypeController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantFileController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantFunctionController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantMenuController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantProductController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantRoleController.java
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
src/main/java/cn/com/glsx/merchants/controller/StaffController.java
src/test/java/cn/com/glsx/merchants/controller/ExampleControllerTest.java
src/test/java/cn/com/glsx/merchants/controller/StaffControllerTest.java
src/main/java/cn/com/glsx/merchants/controller/LogController.java
View file @
353aba1
...
...
@@ -34,7 +34,7 @@ public class LogController {
* @param logSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findLog"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findLog"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询字典类型"
)
public
RopResponse
<
Pagination
<
LogResponse
>>
findLog
(
LogSearchRequest
logSearchRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/LoginController.java
View file @
353aba1
...
...
@@ -49,7 +49,7 @@ public class LoginController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.example.login"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants
.api.example.login"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"登录"
)
public
RopResponse
<
LoginResponse
>
login
(
LoginRequest
request
)
{
try
{
...
...
@@ -68,7 +68,7 @@ public class LoginController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.example.logout"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"
merchants
.api.example.logout"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"登出"
)
public
RopResponse
<
Boolean
>
logout
(
AbstractRopRequest
request
)
{
loginService
.
logout
(
request
);
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantAccountTypeController.java
View file @
353aba1
...
...
@@ -37,7 +37,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore.api.accountT
ype.list"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api.account
ype.list"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型获取列表接口"
)
public
RopResponse
<
List
<
AccountTypeResponse
>>
getAccountTypeList
(
AccountTypeListSearchRequest
request
)
{
try
{
...
...
@@ -54,7 +54,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore.api.accountT
ype.page"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api.account
ype.page"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型获取分页数据接口"
)
public
RopResponse
<
Pagination
<
AccountTypeResponse
>>
getAccountTypePage
(
AccountTypeListSearchRequest
request
)
{
try
{
...
...
@@ -71,7 +71,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore.api.accountT
ype.getById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api.account
ype.getById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取账户类型接口"
)
public
RopResponse
<
AccountTypeResponse
>
getById
(
AccountTypeSearchRequest
request
)
{
try
{
...
...
@@ -88,7 +88,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore.api.accountT
ype.getProductTreeList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api.account
ype.getProductTreeList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取账户类型下产品菜单功能树"
)
public
RopResponse
<
List
<
AccountTreeResponse
>>
getProductTreeList
(
AccountTypeSearchRequest
request
)
{
try
{
...
...
@@ -105,7 +105,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore.api.accountT
ype.deleteById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api.account
ype.deleteById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取账户类型接口"
)
public
RopResponse
<
Boolean
>
deleteById
(
AccountTypeDeleteRequest
request
)
{
try
{
...
...
@@ -122,7 +122,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore.api.accountT
ype.insert"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api.account
ype.insert"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型新增接口"
)
public
RopResponse
<
Boolean
>
insert
(
AccountTypeInsertRequest
request
)
{
try
{
...
...
@@ -139,7 +139,7 @@ public class MerchantAccountTypeController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore.api.accountT
ype.update"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api.account
ype.update"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"账户类型更新接口"
)
public
RopResponse
<
Boolean
>
update
(
AccountTypeUpdateRequest
request
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantCommonController.java
View file @
353aba1
...
...
@@ -40,7 +40,7 @@ public class MerchantCommonController {
* @param defaultRequest
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchantCommon.getCarbrandTree"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchantCommon.getCarbrandTree"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取车辆品牌树"
)
public
RopResponse
<
List
<
CarbrandResponse
>>
getCarbrandTree
(
DefaultRequest
defaultRequest
)
{
try
{
...
...
@@ -57,7 +57,7 @@ public class MerchantCommonController {
* @param abstractRopRequest
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchantCommon.findAllChannel"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchantCommon.findAllChannel"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取渠道列表"
)
public
RopResponse
<
List
<
ChannelResponse
>>
findAllChannel
(
AbstractRopRequest
abstractRopRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantController.java
View file @
353aba1
...
...
@@ -40,7 +40,7 @@ public class MerchantController {
* @param merchantSaveRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.saveMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.saveMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存商户基础信息"
)
public
RopResponse
<
Integer
>
saveMerchant
(
MerchantSaveRequest
merchantSaveRequest
)
{
try
{
...
...
@@ -58,7 +58,7 @@ public class MerchantController {
* @param merchantUpdateRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.updateMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.updateMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新商户基础信息"
)
public
RopResponse
<
Boolean
>
updateMerchant
(
MerchantUpdateRequest
merchantUpdateRequest
)
{
try
{
...
...
@@ -76,7 +76,7 @@ public class MerchantController {
* @param merchantTreeRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.savePermissions"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.savePermissions"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存商户权限信息"
)
@PostMapping
public
RopResponse
<
Boolean
>
savePermissions
(
@RequestBody
MerchantTreeRopRequest
merchantTreeRequest
)
{
...
...
@@ -95,7 +95,7 @@ public class MerchantController {
* @param merchantDetailRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.findMerchantDetail"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.findMerchantDetail"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询商户详情"
)
public
RopResponse
<
MerchantRopResponse
>
findMerchantDetail
(
MerchantDetailRequest
merchantDetailRequest
)
{
try
{
...
...
@@ -113,7 +113,7 @@ public class MerchantController {
* @param merchantTreeRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.updatePermissions"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.updatePermissions"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新商户权限信息"
)
public
RopResponse
<
Boolean
>
updatePermissions
(
@RequestBody
MerchantTreeRopRequest
merchantTreeRequest
)
{
try
{
...
...
@@ -131,7 +131,7 @@ public class MerchantController {
* @param merchantDetailRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.findMerchantTree"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.findMerchantTree"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询商户树"
)
public
RopResponse
<
List
<
MerchantTreeRopResponse
>>
findMerchantTree
(
MerchantDetailRequest
merchantDetailRequest
)
{
try
{
...
...
@@ -149,7 +149,7 @@ public class MerchantController {
* @param merchantDetailRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.findPermissionsByMerId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.findPermissionsByMerId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询商户的菜单权限"
)
public
RopResponse
<
List
<
AccountTypeTreeRopResponse
>>
findPermissionsByMerId
(
MerchantDetailRequest
merchantDetailRequest
)
{
try
{
...
...
@@ -167,7 +167,7 @@ public class MerchantController {
* @param accountTypeSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.accountTypeSearchRequest"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.accountTypeSearchRequest"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取账户类型下产品菜单功能树"
)
public
RopResponse
<
List
<
AccountTypeTreeRopResponse
>>
accountTypeSearchRequest
(
AccountTypeSearchRequest
accountTypeSearchRequest
)
{
try
{
...
...
@@ -185,7 +185,7 @@ public class MerchantController {
* @param roleSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.findMenuFunTreeByRoleId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.findMenuFunTreeByRoleId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取角色产品菜单功能树"
)
public
RopResponse
<
List
<
AccountTypeTreeRopResponse
>>
findMenuFunTreeByRoleId
(
RoleSearchRequest
roleSearchRequest
)
{
try
{
...
...
@@ -203,7 +203,7 @@ public class MerchantController {
* @param merchantDetailRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.findMenuFunTreeByMerId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.findMenuFunTreeByMerId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询商户的菜单权限树"
)
public
RopResponse
<
List
<
AccountTypeTreeRopResponse
>>
findMenuFunTreeByMerId
(
MerchantDetailRequest
merchantDetailRequest
)
{
try
{
...
...
@@ -221,7 +221,7 @@ public class MerchantController {
* @param merchantUpdateValRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.updateValPerByMerId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.updateValPerByMerId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新商户的有效期"
)
public
RopResponse
<
Boolean
>
updateValPerByMerId
(
MerchantUpdateValRequest
merchantUpdateValRequest
)
{
try
{
...
...
@@ -239,7 +239,7 @@ public class MerchantController {
* @param merchantSearchResquest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findMerchantByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findMerchantByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询商户列表"
)
public
RopResponse
<
Pagination
<
MerchantRopResponse
>>
findMerchantByPage
(
MerchantSearchResquest
merchantSearchResquest
)
{
try
{
...
...
@@ -256,7 +256,7 @@ public class MerchantController {
*
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findAllMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findAllMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询所有商户"
)
public
RopResponse
<
List
<
MerchantRopListRes
>>
findAllMerchant
(
MerchantFindRequest
merchantFindRequest
)
{
try
{
...
...
@@ -273,7 +273,7 @@ public class MerchantController {
*
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findSubordinateRelationship"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findSubordinateRelationship"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询上下级商户详情"
)
public
RopResponse
<
MerchantRopResponse
>
findSubordinateRelationship
(
MerchantDetailRequest
merchantDetailRequest
)
{
try
{
...
...
@@ -291,7 +291,7 @@ public class MerchantController {
*
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.merchant.findMerchantBaseInfo"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.merchant.findMerchantBaseInfo"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询商户基本信息"
)
public
RopResponse
<
MerchantBaseInfoRopResponse
>
findMerchantBaseInfo
(
MerchantBaseInfoRequest
merchantBaseInfoRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantDictDataController.java
View file @
353aba1
...
...
@@ -37,7 +37,7 @@ public class MerchantDictDataController {
* @param DictDataSaveRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.saveDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.saveDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存字典数据"
)
public
RopResponse
<
Boolean
>
saveDictData
(
DictDataSaveRequest
DictDataSaveRequest
)
{
try
{
...
...
@@ -55,7 +55,7 @@ public class MerchantDictDataController {
* @param DictDataUpdateRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.updateDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.updateDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新字典数据"
)
public
RopResponse
<
Boolean
>
updateDictData
(
DictDataUpdateRequest
DictDataUpdateRequest
)
{
try
{
...
...
@@ -73,7 +73,7 @@ public class MerchantDictDataController {
* @param DictDataDeleteRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.deleteDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.deleteDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"删除字典数据"
)
public
RopResponse
<
Boolean
>
deleteDictData
(
DictDataDeleteRequest
DictDataDeleteRequest
)
{
try
{
...
...
@@ -91,7 +91,7 @@ public class MerchantDictDataController {
* @param DictDataListSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询字典数据列表"
)
public
RopResponse
<
Pagination
<
DictDataResponse
>>
findDictData
(
DictDataListSearchRequest
DictDataListSearchRequest
)
{
try
{
...
...
@@ -109,7 +109,7 @@ public class MerchantDictDataController {
* @param dictDataSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findAllDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findAllDictData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询所有字典"
)
public
RopResponse
<
List
<
DictDataResponse
>>
findAllDictData
(
DictDataSearchRequest
dictDataSearchRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantDictTypeController.java
View file @
353aba1
...
...
@@ -38,7 +38,7 @@ public class MerchantDictTypeController {
* @param dictTypeSaveRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.saveDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.saveDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存字典类型"
)
public
RopResponse
<
Boolean
>
saveDictType
(
DictTypeSaveRequest
dictTypeSaveRequest
)
{
try
{
...
...
@@ -56,7 +56,7 @@ public class MerchantDictTypeController {
* @param dictTypeUpdateRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.updateDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.updateDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新字典类型"
)
public
RopResponse
<
Boolean
>
updateDictType
(
DictTypeUpdateRequest
dictTypeUpdateRequest
)
{
try
{
...
...
@@ -74,7 +74,7 @@ public class MerchantDictTypeController {
* @param dictTypeDeleteRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.deleteDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.deleteDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"删除字典类型"
)
public
RopResponse
<
Boolean
>
deleteDictType
(
DictTypeDeleteRequest
dictTypeDeleteRequest
)
{
try
{
...
...
@@ -92,7 +92,7 @@ public class MerchantDictTypeController {
* @param dictTypeListSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findDictType"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询字典类型"
)
public
RopResponse
<
Pagination
<
DictTypeResponse
>>
findDictType
(
DictTypeListSearchRequest
dictTypeListSearchRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantFileController.java
View file @
353aba1
...
...
@@ -31,7 +31,7 @@ public class MerchantFileController {
* @param fileSearchRequest
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findMerchantFile"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findMerchantFile"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询素材库"
)
public
RopResponse
<
List
<
FileResponse
>>
findMerchantFile
(
FileSearchRequest
fileSearchRequest
){
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantFunctionController.java
View file @
353aba1
...
...
@@ -38,7 +38,7 @@ public class MerchantFunctionController {
* @param functionSaveRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.saveMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.saveMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存功能"
)
public
RopResponse
<
Boolean
>
saveMerchantFunction
(
FunctionSaveRequest
functionSaveRequest
)
{
try
{
...
...
@@ -56,7 +56,7 @@ public class MerchantFunctionController {
* @param functionUpdateRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.updateMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.updateMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"修改功能"
)
public
RopResponse
<
Boolean
>
updateMerchantFunction
(
FunctionUpdateRequest
functionUpdateRequest
)
{
try
{
...
...
@@ -74,7 +74,7 @@ public class MerchantFunctionController {
* @param functionListSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询功能列表"
)
public
RopResponse
<
Pagination
<
FunctionResponse
>>
findMerchantFunction
(
FunctionListSearchRequest
functionListSearchRequest
)
{
try
{
...
...
@@ -92,7 +92,7 @@ public class MerchantFunctionController {
* @param functionDeleteRequest
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.deleteMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.deleteMerchantFunction"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"删除功能信息"
)
public
RopResponse
<
Boolean
>
deleteMerchantFunction
(
FunctionDeleteRequest
functionDeleteRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantMenuController.java
View file @
353aba1
...
...
@@ -37,7 +37,7 @@ public class MerchantMenuController {
* @param menuSearchRequest 入参
* @return 菜单树结构
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findMerProMenuTree"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findMerProMenuTree"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询菜单树"
)
public
RopResponse
<
List
<
MenuResponse
>>
findMerProMenuTree
(
MenuSearchRequest
menuSearchRequest
)
{
try
{
...
...
@@ -55,7 +55,7 @@ public class MerchantMenuController {
* @param menuSaveRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.saveMerchantProductMenu"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.saveMerchantProductMenu"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存菜单"
)
public
RopResponse
<
Boolean
>
saveMerchantProductMenu
(
MenuSaveRequest
menuSaveRequest
)
{
try
{
...
...
@@ -73,7 +73,7 @@ public class MerchantMenuController {
* @param menuListSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.findMerProMenuByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.findMerProMenuByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询菜单列表"
)
public
RopResponse
<
Pagination
<
MenuResponse
>>
findMerProMenuByPage
(
MenuListSearchRequest
menuListSearchRequest
)
{
try
{
...
...
@@ -91,7 +91,7 @@ public class MerchantMenuController {
* @param menuUpdateRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.updateMerchantProductMenu"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.updateMerchantProductMenu"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新菜单"
)
public
RopResponse
<
Boolean
>
updateMerchantProductMenu
(
MenuUpdateRequest
menuUpdateRequest
)
{
try
{
...
...
@@ -109,7 +109,7 @@ public class MerchantMenuController {
* @param menuDeleteRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.menu.deleteMerchantProductMenu"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.menu.deleteMerchantProductMenu"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"删除菜单"
)
public
RopResponse
<
Boolean
>
deleteMerchantProductMenu
(
MenuDeleteRequest
menuDeleteRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantProductController.java
View file @
353aba1
...
...
@@ -32,7 +32,7 @@ public class MerchantProductController {
@Autowired
private
MerchantProductService
merchantProductService
;
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.product.findProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.product.findProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取所有产品"
)
public
RopResponse
<
List
<
ProductResponse
>>
findProduct
(
AbstractRopRequest
abstractRopRequest
)
{
try
{
...
...
@@ -44,7 +44,7 @@ public class MerchantProductController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.product.saveProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.product.saveProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"新增产品"
)
public
RopResponse
<
Boolean
>
saveProduct
(
ProductSaveRequest
productSearchRequest
)
{
try
{
...
...
@@ -56,7 +56,7 @@ public class MerchantProductController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.product.updateProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.product.updateProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"修改产品"
)
public
RopResponse
<
Boolean
>
updateProduct
(
ProductUpdateRequest
productUpdateRequest
)
{
try
{
...
...
@@ -68,13 +68,13 @@ public class MerchantProductController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.product.deleteProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.product.deleteProduct"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"删除产品"
)
public
RopResponse
<
Boolean
>
deleteProduct
(
ProductDeleteRequest
productDeleteRequest
)
{
return
RopResponse
.
success
(
true
);
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.product.findProductByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.product.findProductByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取产品列表"
)
public
RopResponse
<
Pagination
<
ProductResponse
>>
findProductByPage
(
ProductSearchRequest
productSearchRequest
)
{
try
{
...
...
@@ -92,7 +92,7 @@ public class MerchantProductController {
* @param productSearchByIdRequest
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.product.findProductById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.product.findProductById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据产品id查询菜单功能树"
)
public
RopResponse
<
List
<
MerchantProTreeRopResponse
>>
findMenuFunByProductId
(
ProductSearchByIdRequest
productSearchByIdRequest
){
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/MerchantRoleController.java
View file @
353aba1
...
...
@@ -36,7 +36,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.role.list"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants
.api.role.list"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理获取列表接口"
)
public
RopResponse
<
List
<
RoleResponse
>>
getRoleList
(
RoleSearchRequest
request
)
{
try
{
...
...
@@ -53,7 +53,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.role.page"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants
.api.role.page"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理获取分页数据接口"
)
public
RopResponse
<
Pagination
<
RoleResponse
>>
getRolePage
(
RoleListSearchRequest
request
)
{
try
{
...
...
@@ -70,7 +70,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.role.getById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants
.api.role.getById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取角色管理接口"
)
public
RopResponse
<
RoleResponse
>
getById
(
RoleSearchRequest
request
)
{
try
{
...
...
@@ -87,7 +87,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.role.deleteById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants
.api.role.deleteById"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据id获取角色管理接口"
)
public
RopResponse
<
Boolean
>
deleteById
(
RoleDeleteRequest
request
)
{
try
{
...
...
@@ -104,7 +104,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.role.insert"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants
.api.role.insert"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理新增接口"
)
public
RopResponse
<
Boolean
>
insert
(
RoleInsertRequest
request
)
{
try
{
...
...
@@ -121,7 +121,7 @@ public class MerchantRoleController {
* @param request
* @return
*/
@ServiceMethod
(
method
=
"
org.ore
.api.role.update"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants
.api.role.update"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"角色管理更新接口"
)
public
RopResponse
<
Boolean
>
update
(
RoleUpdateRequest
request
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
View file @
353aba1
...
...
@@ -34,7 +34,7 @@ public class OpenController {
@Autowired
private
OpenService
openService
;
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findMerchantDetailByMerchantNo"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findMerchantDetailByMerchantNo"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据商户号查询商户详情"
)
public
RopResponse
<
MerchantRopResponse
>
findMerchantDetailByMerchantNo
(
OpenMerchantDetailRequest
openMerchantRequest
)
{
try
{
...
...
@@ -46,7 +46,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findSuperlativeMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findSuperlativeMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据商户号最上级工厂商户号"
)
public
RopResponse
<
Integer
>
findSuperlativeMerchant
(
OpenMerchantDetailRequest
openMerchantRequest
)
{
try
{
...
...
@@ -59,7 +59,7 @@ public class OpenController {
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findSuperiorList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findSuperiorList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据商户查询商户上级列表"
)
public
RopResponse
<
List
<
MerchantRopResponse
>>
findSuperiorList
(
OpenMerchantLevelRequest
openMerchantRequest
)
{
try
{
...
...
@@ -71,7 +71,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findMerchantList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findMerchantList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据商户名称和渠道类型查询商户列表"
)
public
RopResponse
<
List
<
MerchantRopResponse
>>
findMerchantList
(
OpenMerchantListRequest
openMerchantRequest
)
{
try
{
...
...
@@ -83,7 +83,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findSubordinateListByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findSubordinateListByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据商户查询商户下级列表"
)
public
RopResponse
<
Pagination
<
MerchantRopResponse
>>
findSubordinateListByPage
(
OpenMerchantPageRequest
openMerchantRequest
)
{
try
{
...
...
@@ -95,7 +95,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.checkBussinessAccount"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.checkBussinessAccount"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"用户登录校验"
)
public
RopResponse
<
List
<
OpenUserResponse
>>
checkBussinessAccount
(
OpenCheckUserRequest
openUserRequest
)
{
try
{
...
...
@@ -107,7 +107,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findDataPermission"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findDataPermission"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"用户数据权限获取"
)
public
RopResponse
<
List
<
Integer
>>
findDataPermission
(
OpenUserDataPermissionRequest
openUserRequest
)
{
try
{
...
...
@@ -119,7 +119,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findMenuFunPermission"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findMenuFunPermission"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"用户菜单权限获取"
)
public
RopResponse
<
List
<
AccountTypeTreeRopResponse
>>
findMenuFunPermission
(
OpenUserMenuPermissionRequest
openUserRequest
)
{
try
{
...
...
@@ -138,7 +138,7 @@ public class OpenController {
* @param merchantSaveRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.saveMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.saveMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存或者更新商户信息接口(对外)"
)
public
RopResponse
<
Integer
>
saveMerchant
(
MerchantSaveOpenRequest
merchantSaveRequest
)
{
try
{
...
...
@@ -156,7 +156,7 @@ public class OpenController {
* @param relaevanceMerRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.relevanceMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.relevanceMerchant"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"企微关联商户"
)
public
RopResponse
<
Boolean
>
relevanceMerchant
(
RelaevanceMerRequest
relaevanceMerRequest
)
{
try
{
...
...
@@ -174,7 +174,7 @@ public class OpenController {
* @param staffSaveOpenRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.saveStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.saveStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存或者更新员工接口(对外)"
)
public
RopResponse
<
Integer
>
saveStaff
(
StaffSaveOpenRequest
staffSaveOpenRequest
)
{
try
{
...
...
@@ -192,7 +192,7 @@ public class OpenController {
* @param staffSaveOpenRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.syncEntmicroStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.syncEntmicroStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"同步企微员工"
)
public
RopResponse
<
List
<
StaffResponse
>>
syncEntmicroStaff
(
SyncStaffOpenRequest
staffSaveOpenRequest
)
{
try
{
...
...
@@ -210,7 +210,7 @@ public class OpenController {
* @param openProximityMerchantRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.proximityMerchantList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.proximityMerchantList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询最近的n家门店"
)
public
RopResponse
<
List
<
MerchantRopResponse
>>
proximityMerchantList
(
OpenProximityMerchantRequest
openProximityMerchantRequest
)
{
try
{
...
...
@@ -228,7 +228,7 @@ public class OpenController {
* @param merchantListOpenRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findMerchantListByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findMerchantListByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据账户类型,层级查询商户列表"
)
public
RopResponse
<
Pagination
<
MerchantRopResponse
>>
findMerchantListByPage
(
MerchantListOpenRequest
merchantListOpenRequest
)
{
try
{
...
...
@@ -246,7 +246,7 @@ public class OpenController {
* @param staffSearchOpenRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findStaffByAccount"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findStaffByAccount"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据登录号查询员工详情"
)
public
RopResponse
<
StaffResponse
>
findStaffByAccount
(
StaffSearchOpenRequest
staffSearchOpenRequest
)
{
try
{
...
...
@@ -264,7 +264,7 @@ public class OpenController {
* @param merchantTreeOpenRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findMerchantTreeByMerchantNo"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findMerchantTreeByMerchantNo"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"商户树查询"
)
public
RopResponse
<
List
<
MerchantTreeOpenResponse
>>
findMerchantTreeByMerchantNo
(
MerchantTreeOpenRequest
merchantTreeOpenRequest
)
{
try
{
...
...
@@ -276,7 +276,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.checkPhone"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.checkPhone"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"手机号校验"
)
public
RopResponse
<
List
<
OpenUserResponse
>>
checkPhone
(
OpenCheckPhoneRequest
openCheckPhoneRequest
)
{
try
{
...
...
@@ -288,7 +288,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.findBySapCode"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.findBySapCode"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据sapCode查询商户"
)
public
RopResponse
<
MerchantRopResponse
>
findBySapCode
(
OpenSapSearchRequest
openSapSearchRequest
)
{
try
{
...
...
@@ -300,7 +300,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.userLogin"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.userLogin"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"用户登录"
)
public
RopResponse
<
Boolean
>
userLogin
(
UserLoginRequest
userLoginRequest
)
{
try
{
...
...
@@ -312,7 +312,7 @@ public class OpenController {
}
}
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.open.updateMd5Password"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.open.updateMd5Password"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"md5"
)
public
RopResponse
<
Boolean
>
updateMd5Password
(
AbstractRopRequest
abstractRopRequest
)
{
try
{
...
...
src/main/java/cn/com/glsx/merchants/controller/StaffController.java
View file @
353aba1
...
...
@@ -34,7 +34,7 @@ public class StaffController {
* @param staffSaveRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.saveStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.saveStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"保存员工"
)
public
RopResponse
<
Boolean
>
saveStaff
(
StaffSaveRequest
staffSaveRequest
)
{
try
{
...
...
@@ -52,7 +52,7 @@ public class StaffController {
* @param staffUpdateRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.updateStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.updateStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新员工"
)
public
RopResponse
<
Boolean
>
updateStaff
(
StaffUpdateRequest
staffUpdateRequest
)
{
try
{
...
...
@@ -70,7 +70,7 @@ public class StaffController {
* @param staffUpdateStatusRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.updateStatus"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.updateStatus"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新员工状态"
)
public
RopResponse
<
Boolean
>
updateStatus
(
StaffUpdateStatusRequest
staffUpdateStatusRequest
)
{
try
{
...
...
@@ -88,7 +88,7 @@ public class StaffController {
* @param staffDeleteRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.deleteStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.deleteStaff"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"删除员工"
)
public
RopResponse
<
Boolean
>
deleteStaff
(
StaffDeleteRequest
staffDeleteRequest
)
{
try
{
...
...
@@ -106,7 +106,7 @@ public class StaffController {
* @param staffSearchRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.staffSearchRequest"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.staffSearchRequest"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询员工详情"
)
public
RopResponse
<
StaffResponse
>
findMerchantStaffDetail
(
StaffSearchRequest
staffSearchRequest
)
{
try
{
...
...
@@ -124,7 +124,7 @@ public class StaffController {
* @param staffListRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.findMerchantStaffList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.findMerchantStaffList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询员工列表"
)
public
RopResponse
<
List
<
StaffResponse
>>
findMerchantStaffList
(
StaffListRequest
staffListRequest
)
{
try
{
...
...
@@ -143,7 +143,7 @@ public class StaffController {
* @param staffPageRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.findStaffByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.findStaffByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询员工分页列表"
)
public
RopResponse
<
Pagination
<
StaffResponse
>>
findStaffByPage
(
StaffPageRequest
staffPageRequest
)
{
try
{
...
...
@@ -161,7 +161,7 @@ public class StaffController {
* @param staffExportRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.exportData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.exportData"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"员工导出"
)
public
RopResponse
<
String
>
exportData
(
StaffExportRequest
staffExportRequest
)
{
try
{
...
...
@@ -180,7 +180,7 @@ public class StaffController {
* @param staffUpdateValRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"
cn.com.glsx.merchants
.staff.updateValPerByStaffId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"
merchants.api
.staff.updateValPerByStaffId"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"更新员工的有效期"
)
public
RopResponse
<
Boolean
>
updateValPerByStaffId
(
StaffUpdateValRequest
staffUpdateValRequest
)
{
try
{
...
...
src/test/java/cn/com/glsx/merchants/controller/ExampleControllerTest.java
View file @
353aba1
...
...
@@ -29,7 +29,7 @@ public class ExampleControllerTest extends BaseControllerTest {
public
void
testGetExample
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>(
4
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"
org.ore
.api.example"
);
params
.
add
(
"method"
,
"
merchants
.api.example"
);
params
.
add
(
"name"
,
"alvin"
);
System
.
out
.
println
(
get
(
params
));
}
...
...
@@ -38,7 +38,7 @@ public class ExampleControllerTest extends BaseControllerTest {
public
void
testPostExample
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>(
4
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"
org.ore
.api.example"
);
params
.
add
(
"method"
,
"
merchants
.api.example"
);
params
.
add
(
"name"
,
"alvin"
);
System
.
out
.
println
(
post
(
params
));
}
...
...
@@ -47,7 +47,7 @@ public class ExampleControllerTest extends BaseControllerTest {
public
void
testComplexRequest
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>(
4
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"
org.ore
.api.example.complex"
);
params
.
add
(
"method"
,
"
merchants
.api.example.complex"
);
params
.
add
(
"name"
,
"alvin"
);
params
.
add
(
"age"
,
"18"
);
params
.
add
(
"data"
,
"18"
);
...
...
@@ -70,7 +70,7 @@ public class ExampleControllerTest extends BaseControllerTest {
public
void
testUpload
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>(
4
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"
org.ore
.api.example.upload"
);
params
.
add
(
"method"
,
"
merchants
.api.example.upload"
);
ClassPathResource
resource
=
new
ClassPathResource
(
"logo.png"
);
UploadFile
uploadFile
=
new
UploadFile
(
resource
.
getFile
());
MultiValueMap
<
String
,
String
>
fileParams
=
new
LinkedMultiValueMap
<
String
,
String
>(
4
);
...
...
src/test/java/cn/com/glsx/merchants/controller/StaffControllerTest.java
View file @
353aba1
...
...
@@ -21,7 +21,7 @@ public class StaffControllerTest extends BaseControllerTest {
public
void
testGetExample
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>(
4
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"
cn.com.glsx.merchants
.staff.saveStaff"
);
params
.
add
(
"method"
,
"
merchants.api
.staff.saveStaff"
);
params
.
add
(
"name"
,
"alvin"
);
params
.
add
(
"staffName"
,
"贤心"
);
params
.
add
(
"staffJob"
,
"jkl"
);
...
...
@@ -42,7 +42,7 @@ public class StaffControllerTest extends BaseControllerTest {
public
void
testPostExample
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>(
4
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"
cn.com.glsx.merchants
.staff.saveStaff"
);
params
.
add
(
"method"
,
"
merchants.api
.staff.saveStaff"
);
params
.
add
(
"name"
,
"alvin"
);
params
.
add
(
"staffName"
,
"贤心"
);
params
.
add
(
"staffJob"
,
"jkl"
);
...
...
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