Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
bdecc4542e
|
|
@ -5,10 +5,7 @@ import com.czg.resp.CzgResult;
|
||||||
import com.czg.service.account.util.AliOssUtil;
|
import com.czg.service.account.util.AliOssUtil;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.apache.commons.io.FilenameUtils;
|
import org.apache.commons.io.FilenameUtils;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -28,7 +25,7 @@ public class CommonController {
|
||||||
* @param type 验证码类型
|
* @param type 验证码类型
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@PostMapping("/sms")
|
@GetMapping("/sms")
|
||||||
public CzgResult<Boolean> sendSms(@RequestParam String type) {
|
public CzgResult<Boolean> sendSms(@RequestParam String type) {
|
||||||
return CzgResult.success(commonService.sendSms(type));
|
return CzgResult.success(commonService.sendSms(type));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue