diff --git a/services/equipment/internal/dao/bind.go b/services/equipment/internal/dao/bind.go index 492db06..bf18312 100644 --- a/services/equipment/internal/dao/bind.go +++ b/services/equipment/internal/dao/bind.go @@ -10,7 +10,7 @@ type BindCreate struct { HostNickname string `gorm:"column:host_nickname;type:varchar(128);comment:主机昵称;NOT NULL" json:"host_nickname"` UserId int64 `gorm:"column:user_id;type:int(11);comment:用户ID;NOT NULL" json:"user_id"` UserNickname string `gorm:"column:user_nickname;type:varchar(128);comment:用户昵称;NOT NULL" json:"user_nickname"` - Type int32 `json:"type" gorm:"type"` // 类型。1为圆屏,2为卵型屏,3为皮肤分析仪,4为经皮湿水仪,5为AI化妆盒,6为软水机,7为制氧机 + Type int32 `json:"type" gorm:"type"` // 类型。1为圆屏,2为卵型屏,3为皮肤分析仪,4为经皮湿水仪,5为AI化妆盒,6为软水机,7为制氧机,8老圆屏,9祛痘,10老圆屏 SkinType int32 `gorm:"column:skin_type" json:"skin_type"` // 1用户 2门店 Image string `gorm:"column:image;type:varchar(128);comment:图片地址;NOT NULL" json:"image"` IsSpeciality int32 `gorm:"column:is_speciality;type:tinyint(1);default:0;comment:1是专业版;NOT NULL" json:"is_speciality"` diff --git a/services/equipment/internal/logic/apiBindItemsLogic.go b/services/equipment/internal/logic/apiBindItemsLogic.go index 60d3255..3f2369d 100644 --- a/services/equipment/internal/logic/apiBindItemsLogic.go +++ b/services/equipment/internal/logic/apiBindItemsLogic.go @@ -40,7 +40,7 @@ func (l *ApiBindItemsLogic) ApiBindItems(in *equipment.EmptyRequest) (*equipment "status": utils.StringStatusOk}, Order: "id desc", } - var info dao.BindInfo + var info []dao.BindInfo err := model.BindModel{}.Init().Items(w, &info) if err != nil { l.Logger.Error(err)