集成AI软著商城接口
This commit is contained in:
parent
0376e2175f
commit
cf8a990a29
@ -0,0 +1,173 @@
|
||||
package cn.com.tenlion.operator.controller.api.aishop;
|
||||
|
||||
import cn.com.tenlion.operator.service.remote.aishop.*;
|
||||
import cn.com.tenlion.operator.service.remote.aishop.impl.RemoteAiShopSerivceImpl;
|
||||
import ink.wgink.annotation.CheckRequestBodyAnnotation;
|
||||
import ink.wgink.common.base.DefaultBaseController;
|
||||
import ink.wgink.common.component.SecurityComponent;
|
||||
import ink.wgink.interfaces.consts.ISystemConstant;
|
||||
import ink.wgink.module.dictionary.pojo.dtos.DataDTO;
|
||||
import ink.wgink.pojo.ListPage;
|
||||
import ink.wgink.pojo.result.ErrorResult;
|
||||
import ink.wgink.pojo.result.SuccessResult;
|
||||
import ink.wgink.pojo.result.SuccessResultList;
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName: AiShopController
|
||||
* @Description: 软著商城
|
||||
* @Author: CodeFactory
|
||||
* @Date: 2023-10-25 11:40:23
|
||||
* @Version: 3.0
|
||||
**/
|
||||
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "软著商城接口")
|
||||
@RestController
|
||||
@RequestMapping(ISystemConstant.API_PREFIX + "/aishop")
|
||||
public class AiShopController extends DefaultBaseController {
|
||||
|
||||
@Autowired
|
||||
private RemoteAiShopSerivceImpl remoteAiShopSerivceImpl;
|
||||
@Autowired
|
||||
protected SecurityComponent securityComponent;
|
||||
@ApiOperation(value = "订单列表", notes = "订单列表接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
|
||||
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
|
||||
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
|
||||
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
|
||||
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("order/listpage")
|
||||
public SuccessResultList<List<OrderDTO>> listPageOrder(ListPage page) {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
return remoteAiShopSerivceImpl.listPageOrder(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "订单详情", notes = "订单详情接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "agreementId", value = "平台协议管理ID", paramType = "path")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("order/get-goods/{orderId}")
|
||||
public GoodsSimpleDTO getOrderGoods(@PathVariable("orderId") String orderId) {
|
||||
return remoteAiShopSerivceImpl.getOrderGoods(orderId);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "订单详情", notes = "订单详情接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "agreementId", value = "平台协议管理ID", paramType = "path")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("order/get/{orderId}")
|
||||
public OrderBaseDTO getOrder(@PathVariable("orderId") String orderId) {
|
||||
return remoteAiShopSerivceImpl.getOrderBase(orderId);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "确认下证", notes = "确认下证接口")
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@PutMapping("order/save-result/{orderId}/{producePhoto}")
|
||||
public synchronized SuccessResult saveResultOrder(@PathVariable("orderId") String orderId, @PathVariable("producePhoto") String producePhoto) {
|
||||
remoteAiShopSerivceImpl.saveResultOrder(orderId, producePhoto, securityComponent.getCurrentUser().getUserId());
|
||||
return new SuccessResult();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "沟通分页列表", notes = "沟通分页列表接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query"),
|
||||
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
|
||||
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
|
||||
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
|
||||
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
|
||||
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("correction/listpage")
|
||||
public SuccessResultList<List<CorrectionDTO>> listPageCorrection(ListPage page) {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
return remoteAiShopSerivceImpl.listPageCorrection(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "沟通详情", notes = "沟通详情接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query"),
|
||||
@ApiImplicitParam(name = "correctionId", value = "沟通ID", paramType = "path")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("correction/get/{correctionId}")
|
||||
public CorrectionDTO getCorrection(@PathVariable("correctionId") String correctionId) {
|
||||
return remoteAiShopSerivceImpl.getCorrection(correctionId);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "新增沟通", notes = "新增沟通接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "access_token", value = "access_token", paramType = "query")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@PostMapping("correction/save")
|
||||
@CheckRequestBodyAnnotation
|
||||
public SuccessResult saveCorrection(@RequestBody CorrectionVO correctionVO) {
|
||||
remoteAiShopSerivceImpl.saveCorrection(correctionVO, securityComponent.getCurrentUser().getUserId());
|
||||
return new SuccessResult();
|
||||
}
|
||||
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("data/listbyparentid/{dataId}")
|
||||
public List<DataDTO> dataList(@PathVariable("dataId") String dataId) {
|
||||
return remoteAiShopSerivceImpl.dataList(dataId);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "著作权信息审核", notes = "著作权信息审核接口")
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@PutMapping("check")
|
||||
public SuccessResult check(@RequestBody GoodslogVO goodsLogVO) {
|
||||
remoteAiShopSerivceImpl.saveCheck(goodsLogVO);
|
||||
return new SuccessResult();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "商品列表", notes = "商品列表接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
|
||||
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
|
||||
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
|
||||
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
|
||||
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("goods/listpage")
|
||||
public SuccessResultList<List<GoodsDTO>> listPageGoods(ListPage page) {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
return remoteAiShopSerivceImpl.listPage(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "商品详情", notes = "平商品详情接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "agreementId", value = "平台协议管理ID", paramType = "path")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("goods/get/{goodsId}")
|
||||
public GoodsDTO getGoods(@PathVariable("goodsId") String goodsId) {
|
||||
return remoteAiShopSerivceImpl.get(goodsId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品列表
|
||||
* @return
|
||||
*/
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("goodslog/list/{goodsId}")
|
||||
public List<GoodslogDTO> logList(@PathVariable("goodsId") String goodsId) {
|
||||
return remoteAiShopSerivceImpl.logList(goodsId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user