课程分类标签页面
parent
c320b6e938
commit
e9e9a3dfa2
@ -0,0 +1,27 @@
|
||||
package com.tz.platform.image.pc;
|
||||
|
||||
import com.tz.platform.common.core.base.BaseController;
|
||||
import com.tz.platform.common.core.base.Result;
|
||||
import com.tz.platform.image.pc.biz.PCImageBiz;
|
||||
import com.tz.platform.image.pc.dto.ImageDTO;
|
||||
import com.tz.platform.image.pc.vo.ImageVo;
|
||||
import org.springframework.beans.MutablePropertyValues;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/api/upload/image")
|
||||
public class PcImageController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private PCImageBiz pcImageBiz;
|
||||
|
||||
@PostMapping(value = "upload")
|
||||
public Result<ImageDTO> upload(MultipartFile file,Integer w,Integer h){
|
||||
return pcImageBiz.uploadImg(file,w,h);
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.tz.platform.image.pc.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.Serializable;
|
||||
@Data
|
||||
public class ImageVo implements Serializable {
|
||||
private MultipartFile file;
|
||||
private Integer w;
|
||||
private Integer h;
|
||||
}
|
Loading…
Reference in New Issue