| | |
| | | import cc.mrbird.febs.mall.service.ICommonService; |
| | | import cc.mrbird.febs.mall.vo.ScoreSignVo; |
| | | import cc.mrbird.febs.mall.vo.common.ApiCommonSetVo; |
| | | import cc.mrbird.febs.mall.vo.common.ApiIndexSetVo; |
| | | import cn.hutool.core.io.file.FileNameUtil; |
| | | import cn.hutool.core.lang.UUID; |
| | | import cn.hutool.core.util.IdUtil; |
| | |
| | | return new FebsResponse().success().data(apiCommonSetVo); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "小程序首页头部背景") |
| | | @GetMapping(value = "/indexHeadPng") |
| | | public FebsResponse indexHeadPng() { |
| | | String pngUrl = commonService.getDicByTypeAndCode( |
| | | CommonDictionaryEnum.VIDEO_URL_INDEX.getType(), |
| | | CommonDictionaryEnum.VIDEO_URL_INDEX.getCode() |
| | | ); |
| | | if (pngUrl == null) { |
| | | pngUrl = ""; |
| | | } |
| | | return new FebsResponse().success().data(pngUrl); |
| | | } |
| | | |
| | | @ApiOperation(value = "小程序开屏页设置") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiIndexSetVo.class) |
| | | }) |
| | | @GetMapping(value = "/indexSet") |
| | | public FebsResponse indexSet() { |
| | | ApiIndexSetVo apiIndexSetVo = new ApiIndexSetVo(); |
| | | |
| | | String pngUrl = commonService.getDicByTypeAndCode( |
| | | CommonDictionaryEnum.PNG_URL_INDEX.getType(), |
| | | CommonDictionaryEnum.PNG_URL_INDEX.getCode() |
| | | ); |
| | | if (pngUrl == null) { |
| | | pngUrl = ""; |
| | | } |
| | | apiIndexSetVo.setPngUrl(pngUrl); |
| | | |
| | | String timeStop = commonService.getDicByTypeAndCode( |
| | | CommonDictionaryEnum.TIME_URL_INDEX.getType(), |
| | | CommonDictionaryEnum.TIME_URL_INDEX.getCode() |
| | | ); |
| | | if (timeStop == null) { |
| | | timeStop = "3"; |
| | | } |
| | | apiIndexSetVo.setTimeStop(timeStop); |
| | | return new FebsResponse().success().data(apiIndexSetVo); |
| | | } |
| | | |
| | | @ApiOperation(value = "base64FileUpload上传") |
| | | @PostMapping(value = "/base64FileUpload") |
| | | public Map<String,Object> base64FileUpload(@RequestBody @Validated MultipartFile file) throws IOException { |