package com.finance.web.controller.api;
import com.finance.common.basic.PageDTO;
import com.finance.common.core.domain.R;
import com.finance.common.exception.ServiceException;
import com.finance.system.dto.FieldCategoryDTO;
import com.finance.system.dto.ShowHideDTO;
import com.finance.system.dto.update.FieldCategoryUpdateDTO;
import com.finance.system.query.FieldCategoryQuery;
import com.finance.system.service.TbFieldCategoryService;
import com.finance.system.vo.FieldCategoryDetailVO;
import com.finance.system.vo.FieldCategoryVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
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.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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
*
* 字段分类表 前端控制器
*
*
* @author mitao
* @since 2024-03-13
*/
@Slf4j
@RestController
@RequestMapping("/field-category")
@RequiredArgsConstructor
@Api(tags = "字段分类管理相关接口")
public class TbFieldCategoryController {
private final TbFieldCategoryService tbFieldCategoryService;
/**
* 添加
*
* @param dto 字段分类数据传输对象
* @return R
*/
@PostMapping("/add")
@ApiOperation("添加")
public R