Commit 47086d52 by licy

一些冗余代码的删除

1 parent 6413000b
package cn.com.glsx.merchants.controller;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.rop.response.RopResponse;
import cn.com.glsx.merchants.request.file.FileSearchRequest;
import cn.com.glsx.merchants.response.FileResponse;
import cn.com.glsx.merchants.service.MerchantFileService;
......@@ -33,21 +33,13 @@ public class MerchantFileController {
*/
@ServiceMethod(method = "cn.com.glsx.merchants.menu.findMerchantFile", needInSession = NeedInSessionType.NO)
@ApiOperation("查询素材库")
public RpcResponse<List<FileResponse>> findMerchantFile(FileSearchRequest fileSearchRequest){
public RopResponse<List<FileResponse>> findMerchantFile(FileSearchRequest fileSearchRequest){
try {
List<FileResponse> fileResponseList = merchantFileService.findMerchantFile(fileSearchRequest);
return RpcResponse.success(fileResponseList);
return RopResponse.success(fileResponseList);
} catch (RpcServiceException e) {
log.info("=======MerchantFileController__invoke__findMerchantFile__exception:{}", e.getMessage());
return RpcResponse.error(e.getError(),e.getMessage());
return RopResponse.error(e.getError(),e.getMessage());
}
}
public RpcResponse<Boolean> saveMerchantFileImg(){
return null;
}
public RpcResponse<Boolean> updateMerchantFileImg(){
return null;
}
}
......@@ -22,10 +22,4 @@ public class FileSearchRequest extends AbstractRopRequest implements Serializabl
@NotNull
private Byte fileType;
/**
* 是否删除:0=正常,-1=删除
*/
@ApiModelProperty(notes = "删除标识")
@NotNull
private Byte delFlag;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!