package integralconfigmod import ( "time" "go.mongodb.org/mongo-driver/bson/primitive" ) type APPIntegralConfig struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` // 积分配置的唯一id Name string `json:"name" bson:"name"` // 积分名称 Duration uint64 `json:"duration" bson:"duration"` // 积分持续天数 Type int `json:"type" bson:"type"` // 类型 Desc string `json:"desc" bson:"desc"` // 描述 Img string `json:"img" bson:"img"` // 图片LOGO Price int64 `json:"price" bson:"price"` // 积分价格 } type ExchangeIntegralReq struct { ID string `json:"id" bson:"id" binding:"required"` // 积分配置的唯一id Name string `json:"name" bson:"name"` // 兑换用户姓名 Tel string `json:"tel" bson:"tel"` // 兑换用户电话 Address string `json:"address" bson:"address"` // 兑换用户地址 } type AppIntegralRecord struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` // 记录id Integral int64 `json:"integral" bson:"integral"` // 积分数量 Type int `json:"type" bson:"type"` // 兑换记录类型 Desc string `json:"desc" bson:"desc"` // 描述 Name string `json:"name" bson:"name"` // 积分名称 CreatedAt time.Time `json:"createdAt" bson:"createdAt"` // 兑换时间 }