|
@@ -0,0 +1,20 @@
|
|
|
|
+package model
|
|
|
|
+
|
|
|
|
+import "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
+
|
|
|
|
+type MatBill struct {
|
|
|
|
+ Id primitive.ObjectID
|
|
|
|
+ PackId primitive.ObjectID
|
|
|
|
+ PlanId primitive.ObjectID
|
|
|
|
+ ProductUnit []*ProductUnit //多个工序
|
|
|
|
+
|
|
|
|
+ State string //created complete
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type CraftBill struct {
|
|
|
|
+ Id primitive.ObjectID
|
|
|
|
+ PackId primitive.ObjectID
|
|
|
|
+ PlanId primitive.ObjectID
|
|
|
|
+ ProductUnit []*ProductUnit //多个工序
|
|
|
|
+}
|