提交修改
This commit is contained in:
parent
a31991fb0c
commit
387eb33edd
@ -54,5 +54,5 @@ public interface VvBuyerDao extends BaseMapper<VvBuyerEntity> {
|
|||||||
|
|
||||||
|
|
||||||
@LIMIT
|
@LIMIT
|
||||||
VvBuyerEntity selectVvBuyerInfo(String buyerName, String buyerWeixin, String buyerPhone);
|
VvBuyerEntity selectVvBuyerInfo(String buyerName,@OR String buyerWeixin,@OR String buyerPhone);
|
||||||
}
|
}
|
||||||
@ -25,7 +25,7 @@ public class AppIndexPageRequest {
|
|||||||
private Integer categoryId3;
|
private Integer categoryId3;
|
||||||
|
|
||||||
|
|
||||||
//销售价格,传ASC 或 DESC
|
//销售价格,传ASC 升序 或 DESC
|
||||||
private String salePriceSort;
|
private String salePriceSort;
|
||||||
|
|
||||||
// 按真实销量排序,传ASC 或 DESC
|
// 按真实销量排序,传ASC 或 DESC
|
||||||
|
|||||||
@ -1,10 +1,9 @@
|
|||||||
package com.heyu.api.controller.mm;
|
package com.heyu.api.controller.vv;
|
||||||
|
|
||||||
|
|
||||||
import com.heyu.api.data.utils.R;
|
import com.heyu.api.data.utils.R;
|
||||||
import com.heyu.api.oss.OssFileUploadService;
|
import com.heyu.api.oss.OssFileUploadService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@ -19,33 +18,25 @@ import java.util.Map;
|
|||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/mm/upload")
|
@RequestMapping("/app/upload")
|
||||||
public class UploadOssController {
|
public class AppUploadOssController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private OssFileUploadService ossFileUploadService;
|
private OssFileUploadService ossFileUploadService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*post man 配置
|
* post man 配置
|
||||||
* https://blog.csdn.net/maowendi/article/details/80537304
|
* https://blog.csdn.net/maowendi/article/details/80537304
|
||||||
*
|
* <p>
|
||||||
*
|
* <p>
|
||||||
* http://localhost:8888/mm/upload/file
|
* http://localhost:8888/app/upload/file file
|
||||||
*/
|
*/
|
||||||
@PostMapping("/file")
|
@PostMapping("/file")
|
||||||
public R uploadFile(HttpServletRequest request, HttpServletResponse response ,@RequestParam("file") MultipartFile file) {
|
public R uploadFile(HttpServletRequest request, HttpServletResponse response, @RequestParam("file") MultipartFile file) {
|
||||||
|
|
||||||
String userName = ObjectUtils.toString(request.getParameter("userPhone"), "");
|
|
||||||
|
|
||||||
String type = ObjectUtils.toString(request.getParameter("type"), "");
|
|
||||||
|
|
||||||
List<Map<String, Object>> data = ossFileUploadService.uploadImages(new MultipartFile[]{file});
|
List<Map<String, Object>> data = ossFileUploadService.uploadImages(new MultipartFile[]{file});
|
||||||
return R.ok().setData(data);
|
return R.ok().setData(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user