mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
fix: 补充项目注释
This commit is contained in:
parent
1554ec1841
commit
6007d14914
@ -10,6 +10,9 @@ import javax.validation.constraints.NotNull;
|
||||
@Data
|
||||
public class KickOutReq {
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@NotNull(message = "userId 为必填项")
|
||||
private Long userId;
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user