refactor(erp): 重构字典服务中的货币功能模块

- 将货币相关结构体和方法独立为单独的currency模块
- 在Dict结构体中添加Currency字段以支持货币功能
- 移除原dict.go中的FunctionalCurrency方法实现
- 新增currency.go文件包含完整的货币字典项定义和本位币查询功能
This commit is contained in:
2026-08-17 11:39:31 +08:00
parent fc181853dd
commit aa877f91b1
3 changed files with 39 additions and 10 deletions

View File

@@ -104,13 +104,3 @@ func (d *dict) Delete(ctx context.Context, dictIds []int64) (err error) {
err = xClient.Call(ctx, "Delete", dictIds, &reply)
return
}
// FunctionalCurrency @TITLE 本位币
func (d *dict) FunctionalCurrency(ctx context.Context) (reply DictItem, err error) {
xClient, err := client2.GetClient(d)
if err != nil {
return
}
err = xClient.Call(ctx, "FunctionalCurrency", 0, &reply)
return
}