/*
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the dreamlu.net developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: Chill 庄骞 (smallchill@163.com)
|
*/
|
package com.vci.ubcs.code.feign;
|
|
import com.vci.ubcs.code.entity.CodeClassify;
|
import com.vci.ubcs.code.entity.CodeClassifyTemplateAttr;
|
import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateAttrVO;
|
import com.vci.ubcs.starter.revision.model.TreeQueryObject;
|
import com.vci.ubcs.starter.web.pagemodel.Tree;
|
import org.springblade.core.launch.constant.AppConstant;
|
import org.springblade.core.mp.support.BladePage;
|
import org.springblade.core.tool.api.R;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
|
/**
|
* 主题库定义表 Feign接口类
|
*
|
* @author yuxc
|
* @since 2023-04-06
|
*/
|
@FeignClient(
|
value = AppConstant.APPLICATION_NAME_CODE
|
)
|
public interface ICodeClassifyClient {
|
|
String API_PREFIX = "/codeClass";
|
String TOP = API_PREFIX + "/top";
|
String CODE_CLASSIFY_TREE=API_PREFIX+"/referCodeClassifyTree";
|
String CODE_ATTRIBUTE_LIST=API_PREFIX+"/listCodeAttributeByClassId";
|
String CODE_ALL_PARENT_OID=API_PREFIX+"/selectAllParentOid";
|
String CODE_GETBYID="/getById";
|
|
/**
|
* 获取主题库定义表列表
|
*
|
* @param current 页号
|
* @param size 页数
|
* @return BladePage
|
*/
|
@GetMapping(TOP)
|
BladePage<CodeClassify> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size);
|
|
/***
|
* 获取主题库分类层级树
|
* @param treeQueryObject
|
* @return 主题库分类
|
*/
|
@PostMapping(CODE_CLASSIFY_TREE)
|
public List<Tree> referCodeClassifyTree(@RequestBody TreeQueryObject treeQueryObject);
|
|
/**
|
* 获取所有上级节点的oid
|
* @param oid
|
* @return
|
*/
|
@PostMapping(CODE_ALL_PARENT_OID)
|
public R<List<String> > selectAllParentOid(@RequestParam("oid") String oid);
|
|
/***
|
* 获取主数据模板属性信息
|
* @param codeClassifyId
|
* reutn 返回主数据模板属性信息
|
*/
|
@GetMapping(CODE_ATTRIBUTE_LIST)
|
public List<CodeClassifyTemplateAttrVO> listCodeAttributeByClassId(@RequestParam("codeClassifyId") String codeClassifyId);
|
|
/***
|
* 根据分类id差爱心分类信息
|
* @param classifyId
|
* @return
|
*/
|
@GetMapping(CODE_GETBYID)
|
CodeClassify getById(@RequestParam("classifyId")String classifyId);
|
}
|