增加店铺动态 / 个人动态 / 增加html转图片的模板预览图

This commit is contained in:
cuibaocheng 2021-04-20 17:03:37 +08:00
parent 00bc9fb754
commit a74fab8d91

View File

@ -39,8 +39,7 @@ public class CardTemplateAppController extends AbstractController {
@ApiImplicitParams({ @ApiImplicitParams({
}) })
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("updatecardtemplateimage/{cardTemplateId}") @PostMapping("updatecardtemplateimage" +ISystemConstant.APP_RELEASE_SUFFIX +"/{cardTemplateId}")
@CheckRequestBodyAnnotation
public SuccessResult updateCardTemplateImage(@PathVariable("cardTemplateId") String cardTemplateId, String templatePreviewPhoto) throws Exception { public SuccessResult updateCardTemplateImage(@PathVariable("cardTemplateId") String cardTemplateId, String templatePreviewPhoto) throws Exception {
Map<String, Object> params = requestParams(); Map<String, Object> params = requestParams();
return cardTemplateService.updateCardTemplateImage(cardTemplateId, params.get("templatePreviewPhoto").toString()); return cardTemplateService.updateCardTemplateImage(cardTemplateId, params.get("templatePreviewPhoto").toString());
@ -48,7 +47,6 @@ public class CardTemplateAppController extends AbstractController {
@ApiOperation(value = "新增名片/海报模板", notes = "新增名片/海报模板接口") @ApiOperation(value = "新增名片/海报模板", notes = "新增名片/海报模板接口")
@ApiImplicitParams({ @ApiImplicitParams({
//@ApiImplicitParam(name = "token", value = "token", paramType = "header")
}) })
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("savecardtemplate") @PostMapping("savecardtemplate")