Search in sources :

Example 1 with SystemCleanType

use of com.orion.ops.consts.system.SystemCleanType in project orion-ops by lijiahangmax.

the class SystemController method cleanSystemFile.

/**
 * 清理系统文件
 */
@RequestMapping("/clean-system-file")
@EventLog(EventType.CLEAN_SYSTEM_FILE)
@RequireRole(RoleType.ADMINISTRATOR)
public HttpWrapper<?> cleanSystemFile(@RequestBody SystemFileCleanRequest request) {
    SystemCleanType cleanType = Valid.notNull(SystemCleanType.of(request.getCleanType()));
    systemService.cleanSystemFile(cleanType);
    return HttpWrapper.ok();
}
Also used : SystemCleanType(com.orion.ops.consts.system.SystemCleanType) 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 SystemCleanType (com.orion.ops.consts.system.SystemCleanType)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1