commit | author | age
|
9bcb19
|
1 |
/* |
I |
2 |
Copyright [2020] [https://www.xiaonuo.vip] |
|
3 |
|
|
4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
you may not use this file except in compliance with the License. |
|
6 |
You may obtain a copy of the License at |
|
7 |
|
|
8 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
|
|
10 |
Unless required by applicable law or agreed to in writing, software |
|
11 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
See the License for the specific language governing permissions and |
|
14 |
limitations under the License. |
|
15 |
|
|
16 |
Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: |
|
17 |
|
|
18 |
1.请不要删除和修改根目录下的LICENSE文件。 |
|
19 |
2.请不要删除和修改Snowy源码头部的版权声明。 |
|
20 |
3.请保留源码和相关描述文件的项目出处,作者声明等。 |
|
21 |
4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
22 |
5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
23 |
6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip |
|
24 |
*/ |
|
25 |
package vip.xiaonuo.sys.modular.dict.service; |
|
26 |
|
|
27 |
import cn.hutool.core.lang.Dict; |
|
28 |
import com.baomidou.mybatisplus.extension.service.IService; |
|
29 |
import vip.xiaonuo.core.pojo.page.PageResult; |
|
30 |
import vip.xiaonuo.sys.modular.dict.entity.SysDictType; |
|
31 |
import vip.xiaonuo.sys.modular.dict.param.SysDictTypeParam; |
|
32 |
import vip.xiaonuo.sys.modular.dict.result.SysDictTreeNode; |
|
33 |
|
|
34 |
import java.util.List; |
|
35 |
|
|
36 |
/** |
|
37 |
* 系统字典类型service接口 |
|
38 |
* |
|
39 |
* @author xuyuxiang,xuyuxiang |
|
40 |
* @date 2020/3/13 16:10 |
|
41 |
*/ |
|
42 |
public interface SysDictTypeService extends IService<SysDictType> { |
|
43 |
|
|
44 |
/** |
|
45 |
* 查询系统字典类型 |
|
46 |
* |
|
47 |
* @param sysDictTypeParam 查询参数 |
|
48 |
* @return 查询分页结果 |
|
49 |
* @author xuyuxiang,xuyuxiang |
|
50 |
* @date 2020/3/31 20:34 |
|
51 |
*/ |
|
52 |
PageResult<SysDictType> page(SysDictTypeParam sysDictTypeParam); |
|
53 |
|
|
54 |
/** |
|
55 |
* 获取字典类型列表 |
|
56 |
* |
|
57 |
* @param sysDictTypeParam 查询参数 |
|
58 |
* @return 系统字典类型列表 |
|
59 |
* @author xuyuxiang,xuyuxiang |
|
60 |
* @date 2020/3/31 21:07 |
|
61 |
*/ |
|
62 |
List<SysDictType> list(SysDictTypeParam sysDictTypeParam); |
|
63 |
|
|
64 |
/** |
|
65 |
* 系统字典类型下拉 |
|
66 |
* |
|
67 |
* @param sysDictTypeParam 下拉参数 |
|
68 |
* @return 增强版hashMap,格式:[{"code:":"1", "value":"正常"}] |
|
69 |
* @author xuyuxiang,xuyuxiang |
|
70 |
* @date 2020/3/31 21:23 |
|
71 |
*/ |
|
72 |
List<Dict> dropDown(SysDictTypeParam sysDictTypeParam); |
|
73 |
|
|
74 |
/** |
|
75 |
* 添加系统字典类型 |
|
76 |
* |
|
77 |
* @param sysDictTypeParam 添加参数 |
|
78 |
* @author xuyuxiang,xuyuxiang |
|
79 |
* @date 2020/3/31 20:35 |
|
80 |
*/ |
|
81 |
void add(SysDictTypeParam sysDictTypeParam); |
|
82 |
|
|
83 |
/** |
|
84 |
* 删除系统字典类型 |
|
85 |
* |
|
86 |
* @param sysDictTypeParam 删除参数 |
|
87 |
* @author xuyuxiang,xuyuxiang |
|
88 |
* @date 2020/3/31 20:35 |
|
89 |
*/ |
|
90 |
void delete(SysDictTypeParam sysDictTypeParam); |
|
91 |
|
|
92 |
/** |
|
93 |
* 编辑系统字典类型 |
|
94 |
* |
|
95 |
* @param sysDictTypeParam 编辑参数 |
|
96 |
* @author xuyuxiang,xuyuxiang |
|
97 |
* @date 2020/3/31 20:35 |
|
98 |
*/ |
|
99 |
void edit(SysDictTypeParam sysDictTypeParam); |
|
100 |
|
|
101 |
/** |
|
102 |
* 查看系统字典类型 |
|
103 |
* |
|
104 |
* @param sysDictTypeParam 查看参数 |
|
105 |
* @return 系统字典类型 |
|
106 |
* @author xuyuxiang,xuyuxiang |
|
107 |
* @date 2020/3/31 20:35 |
|
108 |
*/ |
|
109 |
SysDictType detail(SysDictTypeParam sysDictTypeParam); |
|
110 |
|
|
111 |
/** |
|
112 |
* 修改状态(字典 0正常 1停用 2删除) |
|
113 |
* |
|
114 |
* @param sysDictTypeParam 修改参数 |
|
115 |
* @author yubaoshan |
|
116 |
* @date 2020/4/30 22:30 |
|
117 |
*/ |
|
118 |
void changeStatus(SysDictTypeParam sysDictTypeParam); |
|
119 |
|
|
120 |
/** |
|
121 |
* 系统字典类型与字典值构造的树 |
|
122 |
* |
|
123 |
* @return 树 |
|
124 |
* @author xuyuxiang |
|
125 |
* @date 2020/4/30 22:30 |
|
126 |
*/ |
|
127 |
List<SysDictTreeNode> tree(); |
|
128 |
} |