定义猪的模型和营养需求模型

This commit is contained in:
2025-11-20 14:38:36 +08:00
parent c697e668e3
commit 6ca101727a
6 changed files with 121 additions and 4 deletions

View File

@@ -56,6 +56,10 @@ func GetAllModels() []interface{} {
&WeighingRecord{},
&PigTransferLog{},
&PigSickLog{},
&PigBreed{},
&PigAgeStage{},
&PigType{},
&PigNutrientRequirement{},
// Pig Buy & Sell
&PigPurchase{},
@@ -119,7 +123,7 @@ func (a *UintArray) Scan(src interface{}) error {
case string:
srcStr = v
default:
return errors.New("无法扫描非字符串或字节类型的源到 UintArray")
return errors.New("无法将值 %v (类型 %T) 扫描为 UintArray")
}
// 去掉花括号