sun-pc-linux 2 months ago
parent
commit
3072294295
2 changed files with 24 additions and 0 deletions
  1. 23 0
      boxcost/api/stages.go
  2. 1 0
      boxcost/db/model/pack.go

+ 23 - 0
boxcost/api/stages.go

@@ -0,0 +1,23 @@
+package api
+
+import (
+	"github.com/gin-gonic/gin"
+)
+
+// 增加stage
+// planId packId compentId
+// 计划价格 组件价格
+func AddStage(c *gin.Context, apictx *ApiSession) (interface{}, error) {
+
+	return result, err
+}
+
+func DeleteStage(c *gin.Context, apictx *ApiSession) (interface{}, error) {
+
+	return result, err
+}
+
+func UpdateStage(c *gin.Context, apictx *ApiSession) (interface{}, error) {
+
+	return result, err
+}

+ 1 - 0
boxcost/db/model/pack.go

@@ -86,4 +86,5 @@ type ComponentStage struct {
 	Group      string    `bson:"group" json:"group"`       //工序合标记,相同Group的数据合并成一个单据
 	BillId     string    `bson:"billId" json:"billId"`     //订单Id
 	BillType   int       `bson:"billType" json:"billType"` //订单type // 1,2,3
+	Sort       int       `bson:"sort" json:"sort"`
 }