order address apis

This commit is contained in:
2026-08-25 08:58:22 +08:00
parent 1c85f16c2e
commit a21b93f569
25 changed files with 1123 additions and 185 deletions
+9 -1
View File
@@ -1,10 +1,18 @@
package dao
const CartTypeStore = 1
const CartTypeSale = 2
const CartTypeUser = 3
type Cart struct {
Id int64 `json:"id" gorm:"id"`
Content string `json:"content" gorm:"content"` // 内容
StoreId int64 `json:"store_id" gorm:"store_id"` // 门店ID
SaleId int64 `json:"sale_id" gorm:"sale_id"` // 销售ID
Type bool `json:"type" gorm:"type"` // 类型,1为门店添加,2为销售添加
Type int8 `json:"type" gorm:"type"` // 类型,1为门店添加,2为销售添加
UserId int64 `json:"user_id" gorm:"user_id"` // 用户ID
}
type CartInfo struct {
Content string `json:"content" gorm:"content"` // 内容
}