use of com.orion.ops.consts.AuditStatus in project orion-ops by lijiahangmax.
the class ApplicationReleaseController method auditAppRelease.
/**
* 发布审核
*/
@RequestMapping("/audit")
@RequireRole(RoleType.ADMINISTRATOR)
@EventLog(EventType.AUDIT_RELEASE)
public Integer auditAppRelease(@RequestBody ApplicationReleaseAuditRequest request) {
Valid.notNull(request.getId());
AuditStatus status = Valid.notNull(AuditStatus.of(request.getStatus()));
if (AuditStatus.REJECT.equals(status)) {
Valid.notBlank(request.getReason());
}
return applicationReleaseService.auditAppRelease(request);
}
Aggregations