- 定义 PaymentPurpose 类型和相关常量值 - 在 ERP 服务中添加 Payment 模块引用 - 更新 Payment 结构体中的 PaymentPurpose 字段类型 - 将字符串类型替换为常量类型以增强类型安全 - 添加采购付款单、费用报销和其他支出的用途常量
23 lines
513 B
Go
23 lines
513 B
Go
package erp
|
|
|
|
type Erp struct {
|
|
Factory factory
|
|
Custom custom
|
|
Product product
|
|
Sale sale
|
|
Purchase purchase
|
|
LogisticsCompany logisticsCompany
|
|
Workflow workflow
|
|
Shipment shipment
|
|
Contact contact
|
|
Template template
|
|
Accounting accounting
|
|
Payable payable
|
|
Payment payment
|
|
Receivable receivable
|
|
Receipt receipt
|
|
Expense expense
|
|
Request request
|
|
Dict dict
|
|
}
|