feat(erp): 新增字典和分类管理功能
- 添加 dict 包,包含字体、分类和字典相关结构体与方法 - 实现分类的增删改查接口 - 实现字典的增删改查接口 - 在 receivable.go 中扩展字段支持汇率、部门、业务员等信息 - 新增 payment.go 文件,实现付款单保存功能 - 引入 time 和 decimal 包以支持日期和金额类型字段
This commit is contained in:
39
erp/dict/font.go
Normal file
39
erp/dict/font.go
Normal file
@@ -0,0 +1,39 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user