|
|
@ -10,12 +10,14 @@ import com.storeroom.modules.dictionary.service.ArchivesDictionaryService; |
|
|
|
import com.storeroom.modules.dictionary.service.ArchivesNoSettingService; |
|
|
|
import com.storeroom.modules.dictionary.service.dto.ArchivesNoSettingDTO; |
|
|
|
import com.storeroom.utils.ApiResponse; |
|
|
|
import com.storeroom.utils.StringUtils; |
|
|
|
import com.storeroom.utils.enums.ResponseStatus; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
@ -82,7 +84,10 @@ public class ArchivesDicSettingController { |
|
|
|
|
|
|
|
@ApiOperation("获取规则列表") |
|
|
|
@AnonymousGetMapping("list") |
|
|
|
public ApiResponse<Object> getAll() { |
|
|
|
return ApiResponse.success(arcSettingService.getAll()); |
|
|
|
public ApiResponse<Object> getAll(@RequestParam String categoryId) { |
|
|
|
if (!StringUtils.isEmpty(categoryId)) { |
|
|
|
return ApiResponse.success(arcSettingService.findByCategoryId(categoryId)); |
|
|
|
} |
|
|
|
throw new BaseException("id异常"); |
|
|
|
} |
|
|
|
} |