package ik3cloud import ( "context" "git.kumo.work/shama/service/client" "git.kumo.work/shama/service/ik3cloud/constant" ) type dict struct { } type DictItem struct { Field1 any `json:"field1"` Field2 any `json:"field2"` Field3 any `json:"field3"` Field4 any `json:"field4"` Field5 any `json:"field5"` Field6 any `json:"field6"` Field7 any `json:"field7"` Field8 any `json:"field8"` } type ArgsDictAll struct { CompanyType constant.Action // 类型 FilterItem []FilterItem // 筛选 } type FilterItem struct { FieldName string `json:"FieldName"` Compare constant.FilterCompare `json:"Compare"` Value string `json:"Value"` Left string `json:"Left"` Right string `json:"Right"` Logic string `json:"Logic"` } // All @TITLE 获取字典 func (d *dict) All(ctx context.Context, args ArgsDictAll) (reply []DictItem, err error) { xClient, err := client.GetClient(d) if err != nil { return } err = xClient.Call(ctx, "All", args, &reply) return }