Commit 8245ffec by 陶光胜

获取授权码

parent 527a4ad5
package com.gic.auth.dto;
import java.io.Serializable;
import java.util.Date;
/**
* tab_sys_auth_code
*/
public class AuthCodeDTO {
public class AuthCodeDTO implements Serializable {
/**
*
*/
......
......@@ -37,4 +37,17 @@ public class AuthCodeController {
ServiceResponse<Integer> serviceResponse = this.authCodeApiService.saveAuth(authCodeDTO);
return RestResponse.success(serviceResponse.getResult());
}
@RequestMapping("expire-auth-code")
public RestResponse expireAuthCode(Integer authCodeId){
ServiceResponse<Integer> serviceResponse = this.authCodeApiService.expireAuthCode(authCodeId);
return RestResponse.success(serviceResponse.getResult());
}
@RequestMapping("get-auth-code")
public RestResponse getAuthCode(Integer eid){
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
ServiceResponse<AuthCodeDTO> authCode = this.authCodeApiService.getAuthCode(enterpriseId, eid);
return RestResponse.success(authCode.getResult());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment