You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
462 B
19 lines
462 B
package api
|
|
|
|
import (
|
|
"yunyan/comm"
|
|
"yunyan/pb"
|
|
)
|
|
|
|
// 重置License状态(单条)
|
|
func (this *apiComp) ResetLicenseStatus(session comm.IUserSession, req *pb.ApiResetLicenseStatusReq) (resp *pb.ApiResetLicenseStatusResp, errdata *pb.ErrorData) {
|
|
if err := this.resetOneLicense(req.License); err != nil {
|
|
errdata = &pb.ErrorData{
|
|
Code: pb.ErrorCode_DBError,
|
|
Message: err.Error(),
|
|
}
|
|
return
|
|
}
|
|
resp = &pb.ApiResetLicenseStatusResp{}
|
|
return
|
|
}
|
|
|