package com.lxzn.api.base;
|
|
import com.lxzn.framework.domain.base.SingleDictionary;
|
import com.lxzn.framework.domain.base.request.SingleDictionaryRequest;
|
import com.lxzn.framework.model.response.QueryListResponseResult;
|
import com.lxzn.framework.model.response.QueryPageResponseResult;
|
import com.lxzn.framework.model.response.ResponseResult;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParams;
|
import io.swagger.annotations.ApiOperation;
|
|
@Api(value = "单级字典数据",description = "单级字典数据管理")
|
public interface SingleDictionaryControllerApi {
|
@ApiOperation("新增字典")
|
ResponseResult addDictionary(SingleDictionary dictionary);
|
|
@ApiOperation("单级字典分页查询")
|
@ApiImplicitParams({
|
@ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"),
|
@ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int")
|
})
|
QueryPageResponseResult<SingleDictionary> findPageList(int page, int size, SingleDictionaryRequest singleDictionaryRequest);
|
|
@ApiOperation("编辑字典")
|
ResponseResult editDictionary(String id,SingleDictionary dictionary);
|
|
@ApiOperation("删除字典")
|
ResponseResult deleteDictionary(String id);
|
|
@ApiOperation("查询字典,根据字典类型")
|
QueryListResponseResult<SingleDictionary> findListByTypeCode(String typeCode);
|
|
|
}
|