mirror of
https://gitee.com/blossom-editor/blossom.git
synced 2025-12-06 16:58:26 +08:00
fix: 补充项目注释
This commit is contained in:
parent
1554ec1841
commit
6007d14914
@ -10,6 +10,9 @@ import javax.validation.constraints.NotNull;
|
|||||||
@Data
|
@Data
|
||||||
public class KickOutReq {
|
public class KickOutReq {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户ID
|
||||||
|
*/
|
||||||
@NotNull(message = "userId 为必填项")
|
@NotNull(message = "userId 为必填项")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,9 +23,11 @@ public class WeatherController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取天气信息
|
* 获取天气信息
|
||||||
|
*
|
||||||
|
* @param location 用户位置
|
||||||
*/
|
*/
|
||||||
@GetMapping
|
@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)) {
|
if (StrUtil.isBlank(location)) {
|
||||||
return R.ok(new WeatherRes());
|
return R.ok(new WeatherRes());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user