You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.4 KiB
33 lines
1.4 KiB
package SysDictService
|
|
|
|
import (
|
|
"dsBaseWeb/Business/SysDict/SysDictProto"
|
|
"strings"
|
|
)
|
|
|
|
func GetDictInfo(dictKind string, dictCode string, actionPersonId string, actionIpAddress string) (*SysDictProto.Reply, error) {
|
|
Reply, err := GetSysDict(SysDictProto.ModelArg{DictKind: dictKind, DictCode: dictCode, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
|
|
return Reply, err
|
|
}
|
|
|
|
func PageDict(dictKind string, dictParent string, actionPersonId string, actionIpAddress string) (*SysDictProto.Reply, error) {
|
|
Reply, err := PageSysDict(SysDictProto.QueryArg{DictKind: dictKind, DictParent: dictParent, Page: 1, Limit: 100, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
|
|
return Reply, err
|
|
}
|
|
|
|
func GetStageInfo() (*SysDictProto.Reply, error) {
|
|
Reply, err := GetStage()
|
|
return Reply, err
|
|
}
|
|
|
|
func GetSubjectInfo(stageId string, actionPersonId string, actionIpAddress string) (*SysDictProto.Reply, error) {
|
|
Reply, err := GetSubject(SysDictProto.GetSubjectArg{StageId: stageId, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
|
|
return Reply, err
|
|
}
|
|
|
|
func GetMultipleDictInfo(dictKinds string, actionPersonId string, actionIpAddress string) (*SysDictProto.Reply, error) {
|
|
idsArr := strings.Split(dictKinds, ",")
|
|
Reply, err := GetMultipleDict(SysDictProto.GetMultipleDictArg{MultipleDictKind: idsArr, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
|
|
return Reply, err
|
|
}
|