- 添加 dict 包,包含字体、分类和字典相关结构体与方法 - 实现分类的增删改查接口 - 实现字典的增删改查接口 - 在 receivable.go 中扩展字段支持汇率、部门、业务员等信息 - 新增 payment.go 文件,实现付款单保存功能 - 引入 time 和 decimal 包以支持日期和金额类型字段
40 lines
731 B
Go
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
|
|
}
|