lyh
3 天以前 2ab86210fb27787cb1be8976286b9b827f90997f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);
 
 
}