|
|
@ -12,14 +12,7 @@ import com.kms.system.service.SysDictDataService; |
|
|
|
import com.kms.system.service.SysDictTypeService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping; |
|
|
|
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 org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import com.shuili.common.annotation.Log; |
|
|
|
import com.shuili.common.core.controller.BaseController; |
|
|
@ -129,13 +122,13 @@ public class SysDictDataController extends BaseController |
|
|
|
|
|
|
|
/** |
|
|
|
* 字典数据map(key:dictValue,value:dictLabel) |
|
|
|
* @param dict |
|
|
|
* @param dictType |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ApiOperation("字典数据Map") |
|
|
|
@SaCheckLogin |
|
|
|
@PostMapping(value = "/map") |
|
|
|
public AjaxResult map(@RequestBody SysDictData dict) { |
|
|
|
return AjaxResult.success(dictDataService.selectMap(dict)); |
|
|
|
@GetMapping(value = "/map") |
|
|
|
public AjaxResult map(@RequestParam(required = false) String dictType) { |
|
|
|
return AjaxResult.success(dictDataService.selectMap(dictType)); |
|
|
|
} |
|
|
|
} |
|
|
|