add 条款拆分-获取列表表头、查询条件、表单模型

This commit is contained in:
liao
2023-09-22 10:39:42 +08:00
parent 8f45c59158
commit 3e52e2eabc
@@ -0,0 +1,57 @@
package com.jero.modules.split.controller;
import com.jero.common.api.vo.Result;
import com.jero.common.aspect.annotation.AutoLog;
import com.jero.modules.laws.common.service.ILawsCommonService;
import com.jero.modules.tag.entity.LawsTag;
import com.jero.modules.tag.enums.TableNameEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
/**
* @Author: liao
* @Date: 2023/9/22 10:32
* @Description: 条款拆分
*/
@Slf4j
@RestController
@RequestMapping("/clause/split")
@Api(tags = "条款拆分")
public class ClauseSplitController {
@Autowired
private ILawsCommonService lawsCommonService;
private static final String MODULE_VALUE = TableNameEnum.DOCUMENT_SPLIT.getValue();
@AutoLog(value = "条款拆分-获取列表表头")
@ApiOperation(value="条款拆分-获取列表表头", notes="条款拆分-获取列表表头")
@GetMapping(value = "getCommonHeader")
public Result<List<LawsTag>> getCommonHeader() {
return Result.OK(lawsCommonService.getCommonHeader(MODULE_VALUE));
}
@AutoLog(value = "条款拆分-获取查询条件")
@ApiOperation(value="条款拆分-获取查询条件", notes="条款拆分-获取查询条件")
@GetMapping(value = "getQueryCondition")
public Result<List<LawsTag>> getQueryCondition() {
return Result.OK(lawsCommonService.getQueryCondition(MODULE_VALUE));
}
@AutoLog(value = "条款拆分-获取表单模型")
@ApiOperation(value="条款拆分-获取表单模型", notes="条款拆分-获取表单模型")
@GetMapping(value = "getFormModel")
public Result<Map<String,Object>> getFormModel(@RequestParam(name="type") String type) {
return Result.OK(lawsCommonService.getFormModel(MODULE_VALUE, type));
}
}