添加开发规和skill
This commit is contained in:
@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.jiayunet.constant.OssPathEnum;
|
||||
import org.jiayunet.pojo.vo.OssUrlVo;
|
||||
import org.jiayunet.server.OssServer;
|
||||
import org.jiayunet.service.OssService;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -23,7 +23,7 @@ import java.io.IOException;
|
||||
@AllArgsConstructor
|
||||
@Validated
|
||||
public class OssController {
|
||||
private OssServer ossServer;
|
||||
private OssService ossService;
|
||||
|
||||
|
||||
/**
|
||||
@@ -34,7 +34,7 @@ public class OssController {
|
||||
*/
|
||||
@GetMapping("/requestUploadUrl")
|
||||
public OssUrlVo requestUploadUrl(@RequestParam String fileName, @RequestParam OssPathEnum pathEnum){
|
||||
return ossServer.requestUploadUrl(fileName,pathEnum);
|
||||
return ossService.requestUploadUrl(fileName,pathEnum);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -47,7 +47,7 @@ public class OssController {
|
||||
public OssUrlVo simpleUpload(@RequestParam("file") MultipartFile file, @RequestParam OssPathEnum pathEnum) {
|
||||
|
||||
try {
|
||||
return ossServer.simpleUpload(file.getOriginalFilename(), pathEnum, file.getInputStream());
|
||||
return ossService.simpleUpload(file.getOriginalFilename(), pathEnum, file.getInputStream());
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package org.jiayunet.server;
|
||||
package org.jiayunet.service;
|
||||
|
||||
import com.aliyun.oss.HttpMethod;
|
||||
import lombok.AllArgsConstructor;
|
||||
@@ -27,7 +27,7 @@ import java.time.Instant;
|
||||
@Service
|
||||
@Slf4j
|
||||
@AllArgsConstructor
|
||||
public class OssServer {
|
||||
public class OssService {
|
||||
|
||||
|
||||
private AliOssAbility aliOssAbility;
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package org.jiayunet.server;
|
||||
package org.jiayunet.service;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -20,7 +20,7 @@ import java.util.concurrent.TimeUnit;
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SmsServer {
|
||||
public class SmsService {
|
||||
|
||||
private static final String SMS_KEY_PREFIX = "sms:";
|
||||
|
||||
Reference in New Issue
Block a user