|
@ -1,9 +1,11 @@ |
|
|
package com.kms.web.controller.system; |
|
|
package com.kms.web.controller.system; |
|
|
|
|
|
|
|
|
|
|
|
import com.kms.yxgh.base.Response; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.ApiModel; |
|
|
import io.swagger.annotations.ApiModel; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckLogin; |
|
|
import cn.dev33.satoken.annotation.SaCheckLogin; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
@ -12,14 +14,7 @@ import com.kms.system.service.SysDictDataService; |
|
|
import com.kms.system.service.SysDictTypeService; |
|
|
import com.kms.system.service.SysDictTypeService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.validation.annotation.Validated; |
|
|
import org.springframework.validation.annotation.Validated; |
|
|
import org.springframework.web.bind.annotation.DeleteMapping; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
import com.shuili.common.annotation.Log; |
|
|
import com.shuili.common.annotation.Log; |
|
|
import com.shuili.common.core.controller.BaseController; |
|
|
import com.shuili.common.core.controller.BaseController; |
|
@ -125,4 +120,16 @@ public class SysDictDataController extends BaseController |
|
|
{ |
|
|
{ |
|
|
return toAjax(dictDataService.deleteDictDataByIds(dictCodes)); |
|
|
return toAjax(dictDataService.deleteDictDataByIds(dictCodes)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 字典数据map(key:dictValue,value:dictLabel) |
|
|
|
|
|
* @param dictType |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@ApiOperation("字典数据Map") |
|
|
|
|
|
@GetMapping(value = "/map") |
|
|
|
|
|
public Response<Map<String, String>> map(@RequestParam(required = false) String dictType) { |
|
|
|
|
|
return Response.ok(dictDataService.selectMap(dictType)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|