| | |
| | | package com.moral.api.controller; |
| | | |
| | | import com.moral.api.entity.SysArea; |
| | | import com.moral.api.pojo.dto.login.AccountInfoDTO; |
| | | import com.moral.api.pojo.dto.system.ManageLogQueryDTO; |
| | | import com.moral.api.pojo.form.system.ManageLogQueryForm; |
| | | import com.moral.api.service.ManageLogService; |
| | | import com.moral.api.service.SysAreaService; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.constant.ResultMessage; |
| | | import io.swagger.annotations.Api; |
| | | import com.moral.util.TokenUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | |
| | | * @Version TODO |
| | | **/ |
| | | @Slf4j |
| | | @Api(tags = {"用户组织控制器"}) |
| | | @CrossOrigin(origins = "*", maxAge = 3600) |
| | | @RestController |
| | | @CrossOrigin(origins = "*", maxAge = 3600) |
| | | @RequestMapping("/system") |
| | | public class SystemController { |
| | | |
| | | @Autowired |
| | | SysAreaService sysAreaService; |
| | | |
| | | @Autowired |
| | | ManageLogService manageLogService; |
| | | |
| | | @GetMapping("area/query") |
| | | public ResultMessage query(){ |
| | | public ResultMessage queryArea() { |
| | | List<SysArea> sysAreas = sysAreaService.querySysArea(); |
| | | return ResultMessage.ok(sysAreas); |
| | | } |
| | | |
| | | @GetMapping("log/query") |
| | | public ResultMessage queryLog(ManageLogQueryForm form) { |
| | | |
| | | //判断是否缺少参数 |
| | | if (!form.valid()) |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), |
| | | ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | |
| | | //处理查询业务 |
| | | ManageLogQueryDTO dto = manageLogService.queryManageLog(form); |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |