Commit 58f69e7c by huluobin

update文件上传接口优化

parent bf5f852c
package com.gogirl.infrastructure.service.file.impl;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.gogirl.infrastructure.config.property.GogirlProperties;
import com.gogirl.infrastructure.service.file.FileService;
import com.google.gson.Gson;
......@@ -33,7 +34,7 @@ public class QiniuFileServiceImpl implements FileService {
//文件名
String fileName = multipartFile.getOriginalFilename();
String fileSuffix = fileName.substring(fileName.lastIndexOf("."));
String localFileName = System.currentTimeMillis() + fileSuffix;
String localFileName = IdWorker.getId() + fileSuffix;
String filePath = picturePath + File.separator + localFileName;
File localFile = new File(filePath);
File imagePath = new File(picturePath);
......
......@@ -158,7 +158,7 @@ public class OrderManageController {
return JsonResult.success(orderServe);
}
@ApiOperation("美甲师录入款式/色号和款式描述")
@ApiOperation("美甲师录入补全订单服务的款式色号、款式描述和客照")
@PostMapping("/technician/ordermanage/recordOrderServeData")
public JsonResult<Void> recordOrderServeData(@RequestBody OrderServe param) {
orderManageService.recordOrderServeData(param);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment