- 添加费用(cost)相关结构体与方法定义 - 添加产品(product)相关结构体与方法定义 - 添加备注(remark)相关结构体与方法定义 - 添加做账主服务(old)及列表、详情等核心接口 - 定义做账单据相关的数据模型和查询参数结构 - 实现通过RPC客户端调用后端服务的通用逻辑 - 添加开票产品资料和做账工厂相关接口定义
32 lines
724 B
Go
32 lines
724 B
Go
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
|
|
}
|