| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_area.AreaUser; |
| | | import com.whyc.pojo.db_lock_ram.LockCtlLog; |
| | | import com.whyc.pojo.db_user.UserInf; |
| | | import com.whyc.service.AreaInfService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return service.getAllAreaInf(uname); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有区域信息(平台)") |
| | | @GetMapping("getAllAreaInfInPaltForm") |
| | | public Response getAllAreaInfInPaltForm(){ |
| | | UserInf uinf=ActionUtil.getUser(); |
| | | return service.getAllAreaInf(uinf.getUname()); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加区域") |
| | | @PostMapping("addArea") |
| | | public Response addArea(@RequestParam(required = false) Integer parentId,@RequestBody List<AreaUser> areaUserList,@RequestParam String areaName,@RequestParam(required = false) String areaDescript){ |