| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.web; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.dao.web.response.DeviceRoleVO; |
| | | import com.doumee.service.business.DeviceRoleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2023/12/7 10:40 |
| | | */ |
| | | |
| | | @Api(tags = "ãå
¬ä¼å·ãå
¶ä»") |
| | | @Trace(exclude = true) |
| | | @RestController |
| | | @LoginNoRequired |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/web/other") |
| | | @Slf4j |
| | | public class UnitWebController { |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | @Autowired |
| | | private DeviceRoleService deviceRoleService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢åå
¸å¼æ°æ®", notes = "H5") |
| | | @GetMapping("/getSystemDictData") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "label", value = "æ°æ®åå
¸å¼", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "dictCode", value = "ç³»ç»åå
¸å¼", required = true) |
| | | }) |
| | | public ApiResponse<SystemDictData> getSystemDictData(@RequestParam String dictCode, @RequestParam String label) { |
| | | return ApiResponse.success("æ¥è¯¢æå",systemDictDataBiz.queryByCode(dictCode,label)); |
| | | } |
| | | |
| | | @ApiOperation(value = "设å¤ç»å表", notes = "H5") |
| | | @GetMapping("/deviceRoleList") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "ç±»å 0å³å¡è®¿å®¢ 1æ®é访客 2å
é¨äººå", required = true) |
| | | }) |
| | | public ApiResponse<List<DeviceRoleVO>> deviceRoleList(@RequestParam Integer type) { |
| | | return ApiResponse.success("æ¥è¯¢æå",deviceRoleService.findListByType(type)); |
| | | } |
| | | } |