Files
service/erp/dict/font.go
kanade c1ff46e933 feat(erp): 新增字典和分类管理功能
- 添加 dict 包,包含字体、分类和字典相关结构体与方法
- 实现分类的增删改查接口
- 实现字典的增删改查接口
- 在 receivable.go 中扩展字段支持汇率、部门、业务员等信息
- 新增 payment.go 文件,实现付款单保存功能
- 引入 time 和 decimal 包以支持日期和金额类型字段
2025-12-16 15:03:34 +08:00

40 lines
731 B
Go

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
}