fix: 补充项目注释

This commit is contained in:
xiaozzzi 2024-02-07 18:07:57 +08:00
parent 1554ec1841
commit 6007d14914
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,9 @@ import javax.validation.constraints.NotNull;
@Data
public class KickOutReq {
/**
* 用户ID
*/
@NotNull(message = "userId 为必填项")
private Long userId;
}

View File

@ -23,9 +23,11 @@ public class WeatherController {
/**
* 获取天气信息
*
* @param location 用户位置
*/
@GetMapping
public R<WeatherRes> weather(@RequestParam(value = "location",required = false)String location) {
public R<WeatherRes> weather(@RequestParam(value = "location", required = false) String location) {
if (StrUtil.isBlank(location)) {
return R.ok(new WeatherRes());
}