1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| package service
|
| import (
| "wms/constvar"
| "wms/models"
| )
|
| func GetDictNameListByType(dictType constvar.MiniDictType) (names []string) {
| dictList, err := models.NewMiniDictSearch().SetType(dictType).SetOrder("id asc").FindNotTotal()
| if err != nil {
| return nil
| }
|
| for _, dict := range dictList {
| names = append(names, dict.Name)
| }
|
| return names
| }
|
|