feat(accounting): 初始化旧版做账服务模块
- 添加费用(cost)相关结构体与方法定义 - 添加产品(product)相关结构体与方法定义 - 添加备注(remark)相关结构体与方法定义 - 添加做账主服务(old)及列表、详情等核心接口 - 定义做账单据相关的数据模型和查询参数结构 - 实现通过RPC客户端调用后端服务的通用逻辑 - 添加开票产品资料和做账工厂相关接口定义
This commit is contained in:
31
erp/accounting/old/remark.go
Normal file
31
erp/accounting/old/remark.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package old
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"git.kumo.work/shama/service/client"
|
||||
)
|
||||
|
||||
type remark struct {
|
||||
}
|
||||
|
||||
type RemarkItem struct {
|
||||
Id int64 `json:"id"`
|
||||
FactoryId int64 `json:"factoryId"`
|
||||
FactoryName string `json:"factoryName"`
|
||||
FactoryShortName string `json:"factoryShortName"`
|
||||
Remarks string `json:"remarks"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// All @TITLE 获取备注
|
||||
func (r *remark) All(ctx context.Context, accountingId int64) (reply []RemarkItem, err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "All", accountingId, &reply)
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user