Skip to content

Commit bf3e159

Browse files
committed
style: 统一请求参数、响应参数注释
1 parent 1c85b43 commit bf3e159

File tree

9 files changed

+29
-26
lines changed

9 files changed

+29
-26
lines changed

continew-module-system/src/main/java/top/continew/admin/auth/service/AuthService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface AuthService {
3434
/**
3535
* 登录
3636
*
37-
* @param req 登录请求参数
37+
* @param req 请求参数
3838
* @param request 请求对象
3939
* @return 登录响应参数
4040
*/

continew-module-system/src/main/java/top/continew/admin/system/service/FileService.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,17 @@ default String getDefaultFilePath() {
9898

9999
/**
100100
* 检查文件是否存在
101-
* @param fileHash
102-
* @return
101+
*
102+
* @param fileHash 文件 Hash
103+
* @return 响应参数
103104
*/
104105
FileResp check(String fileHash);
105106

106107
/**
107108
* 创建目录
108-
* @param req
109-
* @return
109+
*
110+
* @param req 请求参数
111+
* @return ID
110112
*/
111113
IdResp<Long> createDir(FileReq req);
112114
}

continew-module-system/src/main/java/top/continew/admin/system/service/MessageService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public interface MessageService {
4444
/**
4545
* 新增
4646
*
47-
* @param req 新增信息
47+
* @param req 请求参数
4848
* @param userIdList 接收人列表
4949
*/
5050
void add(MessageReq req, List<Long> userIdList);

continew-module-system/src/main/java/top/continew/admin/system/service/RoleService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface RoleService extends BaseService<RoleResp, RoleDetailResp, RoleQ
4141
* 修改角色权限
4242
*
4343
* @param id 角色 ID
44-
* @param req 参数
44+
* @param req 请求参数
4545
*/
4646
void updatePermission(Long id, RoleUpdatePermissionReq req);
4747

continew-module-system/src/main/java/top/continew/admin/system/service/UserService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ public interface UserService extends BaseService<UserResp, UserDetailResp, UserQ
5858
/**
5959
* 导入数据
6060
*
61-
* @param req 导入信息
61+
* @param req 请求参数
6262
* @return 导入结果
6363
*/
6464
UserImportResp importUser(UserImportReq req);
6565

6666
/**
6767
* 重置密码
6868
*
69-
* @param req 重置信息
69+
* @param req 请求参数
7070
* @param id ID
7171
*/
7272
void resetPassword(UserPasswordResetReq req, Long id);

continew-plugin/continew-plugin-generator/src/main/java/top/continew/admin/generator/service/GeneratorService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public interface GeneratorService {
6666
/**
6767
* 保存代码生成配置信息
6868
*
69-
* @param req 代码生成配置信息
69+
* @param req 请求参数
7070
* @param tableName 表名称
7171
*/
7272
void saveConfig(GenConfigReq req, String tableName);

continew-plugin/continew-plugin-schedule/src/main/java/top/continew/admin/schedule/api/JobApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public interface JobApi {
5353
/**
5454
* 新增
5555
*
56-
* @param req 新增信息
56+
* @param req 请求参数
5757
* @return 响应信息
5858
*/
5959
@PostMapping
@@ -62,7 +62,7 @@ public interface JobApi {
6262
/**
6363
* 修改
6464
*
65-
* @param req 修改信息
65+
* @param req 请求参数
6666
* @return 响应信息
6767
*/
6868
@PutMapping
@@ -71,7 +71,7 @@ public interface JobApi {
7171
/**
7272
* 修改状态
7373
*
74-
* @param req 修改信息
74+
* @param req 请求参数
7575
* @return 响应信息
7676
*/
7777
@PutMapping("/status")
@@ -89,7 +89,7 @@ public interface JobApi {
8989
/**
9090
* 执行
9191
*
92-
* @param req 参数
92+
* @param req 请求参数
9393
* @return 响应信息
9494
*/
9595
@PostMapping("/trigger")

continew-plugin/continew-plugin-schedule/src/main/java/top/continew/admin/schedule/service/JobService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ public interface JobService {
4545
/**
4646
* 新增
4747
*
48-
* @param req 创建信息
48+
* @param req 请求参数
4949
* @return 新增结果
5050
*/
5151
boolean create(JobReq req);
5252

5353
/**
5454
* 修改
5555
*
56-
* @param req 修改信息
56+
* @param req 请求参数
5757
* @param id ID
5858
* @return 修改结果
5959
*/
@@ -62,7 +62,7 @@ public interface JobService {
6262
/**
6363
* 修改状态
6464
*
65-
* @param req 修改状态信息
65+
* @param req 请求参数
6666
* @param id ID
6767
* @return 修改状态结果
6868
*/
@@ -79,7 +79,7 @@ public interface JobService {
7979
/**
8080
* 执行
8181
*
82-
* @param req 参数
82+
* @param req 请求参数
8383
* @return 执行结果
8484
*/
8585
boolean trigger(JobTriggerReq req);

continew-webapi/src/main/java/top/continew/admin/controller/common/CaptchaController.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,13 @@ public CaptchaResp getImageCaptcha() {
131131
* <p>
132132
* 限流规则:<br>
133133
* 1.同一邮箱同一模板,1分钟2条,1小时8条,24小时20条 <br>
134-
* 2同一邮箱所有模板 24 小时 100 条 <br>
135-
* 3同一 IP 每分钟限制发送 30 条
134+
* 2.同一邮箱所有模板 24 小时 100 条 <br>
135+
* 3.同一 IP 每分钟限制发送 30 条
136136
* </p>
137137
*
138-
* @param email 邮箱
139-
* @return /
138+
* @param email 邮箱
139+
* @param captchaReq 行为验证码请求参数
140+
* @return {@link R }
140141
*/
141142
@Operation(summary = "获取邮箱验证码", description = "发送验证码到指定邮箱")
142143
@GetMapping("/mail")
@@ -177,13 +178,13 @@ public R getMailCaptcha(@NotBlank(message = "邮箱不能为空") @Email(message
177178
* <p>
178179
* 限流规则:<br>
179180
* 1.同一号码同一模板,1分钟2条,1小时8条,24小时20条 <br>
180-
* 2同一号码所有模板 24 小时 100 条 <br>
181-
* 3同一 IP 每分钟限制发送 30 条
181+
* 2.同一号码所有模板 24 小时 100 条 <br>
182+
* 3.同一 IP 每分钟限制发送 30 条
182183
* </p>
183184
*
184185
* @param phone 手机号
185-
* @param captchaReq 行为验证码信息
186-
* @return /
186+
* @param captchaReq 行为验证码请求参数
187+
* @return {@link R }
187188
*/
188189
@Operation(summary = "获取短信验证码", description = "发送验证码到指定手机号")
189190
@GetMapping("/sms")

0 commit comments

Comments
 (0)