|
|
@ -16,10 +16,7 @@ import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.data.domain.Pageable; |
|
|
|
import org.springframework.http.HttpStatus; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
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 java.util.List; |
|
|
|
|
|
|
@ -32,15 +29,15 @@ public class DictrionaryController { |
|
|
|
private final DictionaryService dictionaryService; |
|
|
|
|
|
|
|
@ApiOperation("字典目录") |
|
|
|
// @GetMapping("/menu") |
|
|
|
@AnonymousGetMapping(value = "/menu") |
|
|
|
@GetMapping("/menu") |
|
|
|
// @AnonymousGetMapping(value = "/menu") |
|
|
|
public ApiResponse<Object> menu(){ |
|
|
|
return ApiResponse.success(dictionaryService.findDictrionaryMenu()); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("编辑字典") |
|
|
|
// @GetMapping("/edit") |
|
|
|
@AnonymousPostMapping(value = "/edit") |
|
|
|
@PostMapping("/edit") |
|
|
|
// @AnonymousPostMapping(value = "/edit") |
|
|
|
public ApiResponse<Object> edit( |
|
|
|
@Validated @RequestBody DictionaryDTO dto |
|
|
|
){ |
|
|
@ -50,8 +47,8 @@ public class DictrionaryController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("删除字典") |
|
|
|
// @GetMapping("/delete") |
|
|
|
@AnonymousPostMapping(value = "/delete") |
|
|
|
@PostMapping("/delete") |
|
|
|
// @AnonymousPostMapping(value = "/delete") |
|
|
|
public ApiResponse<Object> delete( |
|
|
|
@Validated @RequestBody PrimaryDTO dto |
|
|
|
){ |
|
|
@ -60,8 +57,8 @@ public class DictrionaryController { |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据字典id分页查询子集") |
|
|
|
// @GetMapping("/findSubsetById") |
|
|
|
@AnonymousGetMapping(value = "/findSubsetById") |
|
|
|
@GetMapping("/findSubsetById") |
|
|
|
// @AnonymousGetMapping(value = "/findSubsetById") |
|
|
|
public ApiResponse<Object> findSubsetById( |
|
|
|
DictionaryQueryCriteria criteria,Pageable page |
|
|
|
){ |
|
|
|