接口修改

This commit is contained in:
张松 2025-03-05 16:35:44 +08:00
parent a8a3a311bf
commit 1532473947
1 changed files with 2 additions and 5 deletions

View File

@ -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));
} }