mirror of
				https://github.com/suyiiyii/SIMS.git
				synced 2025-11-04 07:24:53 +08:00 
			
		
		
		
	更新了RevokedController中的操作注释和响应消息
以更清晰地传达管理员处理撤销申请的流程。修改了批准状态下的返回消息,将其从"申请成功"更改为"修改成功",以准确描述该操作的结果。同时,通过添加description属性,增强了端点文档的清晰度,指明了status字段的可接受值及其含义。
This commit is contained in:
		
							parent
							
								
									61864419ab
								
							
						
					
					
						commit
						f17b969573
					
				@ -84,7 +84,7 @@ public class RevokedController {
 | 
			
		||||
    //TODO 管理员可以撤销某一成员的奖励或惩罚记录,需填写撤销原因,撤销备注
 | 
			
		||||
 | 
			
		||||
    @AuthAccess(allowRoles = {"admin"})
 | 
			
		||||
    @Operation(summary = "管理员处理撤销申请")
 | 
			
		||||
    @Operation(summary = "管理员处理撤销申请",description = "status:批准/拒绝")
 | 
			
		||||
    @PutMapping("/{id}")
 | 
			
		||||
    public Result<CommonResponse> revoked(@PathVariable Integer id, RevokedRequest revokedRequest, HttpServletRequest request) {
 | 
			
		||||
        String userId = String.valueOf(JwtInterceptor.getUserIdFromReq(request));
 | 
			
		||||
@ -102,7 +102,7 @@ public class RevokedController {
 | 
			
		||||
        if ("批准".equals(revokedRequest.getStatus())) {
 | 
			
		||||
            revokedService.addRevokedRecord(id,userId,revokedRequest.getReason(),revokedRequest.getHandleTime());
 | 
			
		||||
        }
 | 
			
		||||
        return Result.success(CommonResponse.factory("申请成功"));
 | 
			
		||||
        return Result.success(CommonResponse.factory("修改成功"));
 | 
			
		||||
    }
 | 
			
		||||
    @AuthAccess(allowRoles = {"admin"})
 | 
			
		||||
    @Operation(summary = "撤销单个奖惩记录")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user