|
@@ -6,6 +6,17 @@ import (
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
)
|
|
|
|
|
|
+// 表面工艺信息
|
|
|
+type MeshComp struct {
|
|
|
+ Id string `bson:"id,omitempty" json:"id"`
|
|
|
+ Name string `bson:"name,omitempty" json:"name"`
|
|
|
+ FabricName string `bson:"fabricName,omitempty" json:"fabricName"`
|
|
|
+ FinishUuid string `bson:"finishUuid,omitempty" json:"finishUuid"`
|
|
|
+ FabricId primitive.ObjectID `bson:"fabricId,omitempty" json:"fabricId"`
|
|
|
+ ShapeIds []primitive.ObjectID `bson:"ShapeIds,omitempty" json:"ShapeIds"`
|
|
|
+ FabricThumb string `bson:"fabricThumb,omitempty" json:"fabricThumb"`
|
|
|
+}
|
|
|
+
|
|
|
// 模型库
|
|
|
type ModelLib struct {
|
|
|
Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
|
|
@@ -19,4 +30,5 @@ type ModelLib struct {
|
|
|
Categories []string `bson:"categories,omitempty" json:"categories"`
|
|
|
CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
|
|
|
UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
|
|
|
+ Comps []MeshComp `bson:"comps,omitempty" json:"comps"`
|
|
|
}
|