Search in sources :

Example 1 with AuditStatus

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);
}
Also used : AuditStatus(com.orion.ops.consts.AuditStatus) EventLog(com.orion.ops.annotation.EventLog) RequireRole(com.orion.ops.annotation.RequireRole) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

EventLog (com.orion.ops.annotation.EventLog)1 RequireRole (com.orion.ops.annotation.RequireRole)1 AuditStatus (com.orion.ops.consts.AuditStatus)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1