add apis
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 27s
CI / chore (push) Successful in 31s
CI / equipment (push) Successful in 30s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 1s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s

This commit is contained in:
2026-10-20 20:02:25 +08:00
parent 113756fd46
commit 278713765c
22 changed files with 704 additions and 210 deletions
+8
View File
@@ -98,3 +98,11 @@ type MaskUsedInfo struct {
UseTime string `gorm:"column:use_time;type:varchar(64);comment:使用的时间;NOT NULL" json:"use_time"`
SecondUseTime string `gorm:"column:second_use_time;type:varchar(64);comment:第二次使用的时间,与第一次不能超过半小时" json:"second_use_time"`
}
type UserInfo struct {
Id int64 ` json:"id"`
}
type StoreInfo struct {
Id int64 ` json:"id"`
}
@@ -0,0 +1,18 @@
package dao
import "lone-services/pkg/utils"
type MaskUsageRecordInfo struct {
Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
Userid int `gorm:"column:userid;type:int(11);comment:用户ID;NOT NULL" json:"userid"`
StoreId int `gorm:"column:store_id;type:int(11);comment:美容院ID;NOT NULL" json:"store_id"`
FacialMaskId string `gorm:"column:facial_mask_id;type:varchar(255);comment:面膜ID;NOT NULL" json:"facial_mask_id"`
CreatedAt utils.CustomTime `gorm:"column:created_at;type:timestamp;default:CURRENT_TIMESTAMP" json:"created_at"`
}
type MaskUsageRecordCreate struct {
Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
Userid int `gorm:"column:userid;type:int(11);comment:用户ID;NOT NULL" json:"userid"`
StoreId int `gorm:"column:store_id;type:int(11);comment:美容院ID;NOT NULL" json:"store_id"`
FacialMaskId string `gorm:"column:facial_mask_id;type:varchar(255);comment:面膜ID;NOT NULL" json:"facial_mask_id"`
}