Commit d89c1e1a by zhouhb

[+]日志服务

1 parent ab8c94b2
...@@ -4,6 +4,7 @@ import cn.com.glsx.framework.core.exception.RpcServiceException; ...@@ -4,6 +4,7 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.rop.response.RopResponse; import cn.com.glsx.framework.rop.response.RopResponse;
import cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest; import cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest;
import cn.com.glsx.merchants.request.merchant.*; import cn.com.glsx.merchants.request.merchant.*;
import cn.com.glsx.merchants.request.role.RoleSearchRequest;
import cn.com.glsx.merchants.response.AccountTypeTreeRopResponse; import cn.com.glsx.merchants.response.AccountTypeTreeRopResponse;
import cn.com.glsx.merchants.response.MerchantRopResponse; import cn.com.glsx.merchants.response.MerchantRopResponse;
import cn.com.glsx.merchants.response.MerchantTreeRopResponse; import cn.com.glsx.merchants.response.MerchantTreeRopResponse;
...@@ -181,6 +182,24 @@ public class MerchantController { ...@@ -181,6 +182,24 @@ public class MerchantController {
} }
/** /**
* 获取角色产品菜单功能树
*
* @param roleSearchRequest 入参
* @return
*/
@ServiceMethod(method = "cn.com.glsx.merchants.merchant.findMenuFunTreeByRoleId", needInSession = NeedInSessionType.NO)
@ApiOperation("获取角色产品菜单功能树")
public RopResponse<List<AccountTypeTreeRopResponse>> findMenuFunTreeByRoleId(RoleSearchRequest roleSearchRequest) {
try {
List<AccountTypeTreeRopResponse> merchantResponse = merchantService.findMenuFunTreeByRoleId(roleSearchRequest);
return RopResponse.success(merchantResponse);
} catch (RpcServiceException e) {
log.info("=======MerchantController__invoke__findMenuFunTreeByRoleId__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage());
}
}
/**
* 查询商户的菜单权限树 * 查询商户的菜单权限树
* *
* @param merchantDetailRequest 入参 * @param merchantDetailRequest 入参
......
...@@ -13,9 +13,15 @@ import lombok.Data; ...@@ -13,9 +13,15 @@ import lombok.Data;
@Data @Data
public class LogSearchRequest extends DefaultRequest { public class LogSearchRequest extends DefaultRequest {
@ApiModelProperty(notes = "分页数",required = true) @ApiModelProperty(notes = "分页数", required = true)
private Integer pageSize; private Integer pageSize;
@ApiModelProperty(notes = "当前页",required = true) @ApiModelProperty(notes = "当前页", required = true)
private Integer pageNumer; private Integer pageNum;
@ApiModelProperty(notes = "业务id", required = true)
private Integer bussinessId;
@ApiModelProperty(notes = "当前模块", required = true)
private String moduleName;
} }
...@@ -69,4 +69,10 @@ public class LogResponse { ...@@ -69,4 +69,10 @@ public class LogResponse {
@ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date") @ApiModelProperty(name = "createdTime", notes = "创建时间", dataType = "Date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdTime; private Date createdTime;
/**
* 产品名称
*/
@ApiModelProperty(name = "productName", notes = "productName")
private String productName;
} }
...@@ -242,6 +242,12 @@ public class MerchantRopResponse { ...@@ -242,6 +242,12 @@ public class MerchantRopResponse {
private String effectiveTimeName; private String effectiveTimeName;
/** /**
* 渠道名称
*/
@ApiModelProperty(name = "channelName", notes = "渠道名称", dataType = "String", required = true, example = "1")
private String channelName;
/**
* 有效时间 * 有效时间
*/ */
@ApiModelProperty(name = "effectiveTime", notes = "有效时间", dataType = "Integer", required = true, example = "1") @ApiModelProperty(name = "effectiveTime", notes = "有效时间", dataType = "Integer", required = true, example = "1")
......
...@@ -14,6 +14,7 @@ import cn.com.glsx.merchants.remote.MerchantRemote; ...@@ -14,6 +14,7 @@ import cn.com.glsx.merchants.remote.MerchantRemote;
import cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest; import cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest;
import cn.com.glsx.merchants.request.file.FileSaveRequest; import cn.com.glsx.merchants.request.file.FileSaveRequest;
import cn.com.glsx.merchants.request.merchant.*; import cn.com.glsx.merchants.request.merchant.*;
import cn.com.glsx.merchants.request.role.RoleSearchRequest;
import cn.com.glsx.merchants.response.*; import cn.com.glsx.merchants.response.*;
import cn.com.glsx.merchants.util.Pagination; import cn.com.glsx.merchants.util.Pagination;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
...@@ -243,4 +244,13 @@ public class MerchantService { ...@@ -243,4 +244,13 @@ public class MerchantService {
} }
throw new RpcServiceException(response.getException().getErrId(),response.getMessage()); throw new RpcServiceException(response.getException().getErrId(),response.getMessage());
} }
public List<AccountTypeTreeRopResponse> findMenuFunTreeByRoleId(RoleSearchRequest roleSearchRequest) {
RpcResponse<List<AccountTypeTreeResponse>> response =
merchantRemote.findMenuFunTreeByRoleId(roleSearchRequest.getId());
if (response.isSuccess()) {
return ConvertResponse.convertList(response.getResult(), AccountTypeTreeRopResponse.class);
}
throw new RpcServiceException(response.getException().getErrId(),response.getMessage());
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!