package dict import ( "context" "git.kumo.work/shama/service/client" "git.kumo.work/shama/service/lib/bean" ) type font struct { } type ArgsFontList struct { Page bean.Page Search FontSearch } type FontSearch struct { Name string } type ReplyFontList struct { List []FontItem `json:"list"` Total int64 `json:"total"` } type FontItem struct { Id int64 `json:"id"` Name string `json:"name"` Path string `json:"path"` BoldPath string `json:"boldPath"` } // List @TITLE 列表 func (f *font) List(ctx context.Context, args ArgsFontList) (reply ReplyFontList, err error) { xClient, err := client.GetClient(f) if err != nil { return } err = xClient.Call(ctx, "List", args, &reply) return }