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.SysDictData; |
|
31 |
import vip.xiaonuo.sys.modular.dict.param.SysDictDataParam; |
|
32 |
|
|
33 |
import java.util.List; |
|
34 |
|
|
35 |
/** |
|
36 |
* 系统字典值service接口 |
|
37 |
* |
|
38 |
* @author xuyuxiang |
|
39 |
* @date 2020/3/13 16:10 |
|
40 |
*/ |
|
41 |
public interface SysDictDataService extends IService<SysDictData> { |
|
42 |
|
|
43 |
/** |
|
44 |
* 查询系统字典值 |
|
45 |
* |
|
46 |
* @param sysDictDataParam 查询参数 |
|
47 |
* @return 查询分页结果 |
|
48 |
* @author xuyuxiang |
|
49 |
* @date 2020/3/31 20:53 |
|
50 |
*/ |
|
51 |
PageResult<SysDictData> page(SysDictDataParam sysDictDataParam); |
|
52 |
|
|
53 |
/** |
|
54 |
* 系统字典值列表 |
|
55 |
* |
|
56 |
* @param sysDictDataParam 查询参数 |
|
57 |
* @return 系统字典值列表 |
|
58 |
* @author xuyuxiang |
|
59 |
* @date 2020/3/31 21:07 |
|
60 |
*/ |
|
61 |
List<SysDictData> list(SysDictDataParam sysDictDataParam); |
|
62 |
|
|
63 |
/** |
|
64 |
* 添加系统字典值 |
|
65 |
* |
|
66 |
* @param sysDictDataParam 添加参数 |
|
67 |
* @author xuyuxiang |
|
68 |
* @date 2020/3/31 20:53 |
|
69 |
*/ |
|
70 |
void add(SysDictDataParam sysDictDataParam); |
|
71 |
|
|
72 |
/** |
|
73 |
* 删除系统字典值 |
|
74 |
* |
|
75 |
* @param sysDictDataParam 删除参数 |
|
76 |
* @author xuyuxiang |
|
77 |
* @date 2020/3/31 20:54 |
|
78 |
*/ |
|
79 |
void delete(SysDictDataParam sysDictDataParam); |
|
80 |
|
|
81 |
/** |
|
82 |
* 编辑系统字典值 |
|
83 |
* |
|
84 |
* @param sysDictDataParam 编辑参数 |
|
85 |
* @author xuyuxiang |
|
86 |
* @date 2020/3/31 20:54 |
|
87 |
*/ |
|
88 |
void edit(SysDictDataParam sysDictDataParam); |
|
89 |
|
|
90 |
/** |
|
91 |
* 查看系统字典值 |
|
92 |
* |
|
93 |
* @param sysDictDataParam 查看参数 |
|
94 |
* @return 系统字典值 |
|
95 |
* @author xuyuxiang |
|
96 |
* @date 2020/3/31 20:54 |
|
97 |
*/ |
|
98 |
SysDictData detail(SysDictDataParam sysDictDataParam); |
|
99 |
|
|
100 |
/** |
|
101 |
* 根据typeId下拉 |
|
102 |
* |
|
103 |
* @param dictTypeId 字典类型id |
|
104 |
* @return 增强版hashMap,格式:[{"code:":"1", "value":"正常"}] |
|
105 |
* @author xuyuxiang yubaoshan |
|
106 |
* @date 2020/3/31 21:27 |
|
107 |
*/ |
|
108 |
List<Dict> getDictDataListByDictTypeId(Long dictTypeId); |
|
109 |
|
|
110 |
/** |
|
111 |
* 根据typeId删除 |
|
112 |
* |
|
113 |
* @param dictTypeId 字典类型id |
|
114 |
* @author xuyuxiang |
|
115 |
* @date 2020/4/1 10:27 |
|
116 |
*/ |
|
117 |
void deleteByTypeId(Long dictTypeId); |
|
118 |
|
|
119 |
/** |
|
120 |
* 修改状态 |
|
121 |
* |
|
122 |
* @param sysDictDataParam 修改参数 |
|
123 |
* @author yubaoshan |
|
124 |
* @date 2020/5/1 9:44 |
|
125 |
*/ |
|
126 |
void changeStatus(SysDictDataParam sysDictDataParam); |
|
127 |
|
|
128 |
/** |
|
129 |
* 根据字典类型获取字典的code值 |
|
130 |
* |
|
131 |
* @param dictTypeCodes 字典类型编码集合 |
|
132 |
* @return 字典编码值列表 |
|
133 |
* @author xuyuxiang |
|
134 |
* @date 2020/8/9 14:18 |
|
135 |
*/ |
|
136 |
List<String> getDictCodesByDictTypeCode(String... dictTypeCodes); |
|
137 |
} |