123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- package models
- import (
- "github.com/shopspring/decimal"
- "time"
- )
- type CreateMerchantCardRequest struct {
- MerchantCardName string `json:"merchant_card_name"` // 商户卡名称
- MerchantOpenID string `json:"open_id"` // openid
- CardProjectData []int64 `json:"card_project_data"` // 项目
- CardPrice string `json:"card_price"` // 单价
- ActivityEndTime string `json:"activity_end_time"` // 活动结束时间
- ActivityStartTime string `json:"activity_start_time"` // 活动开始时间
- MerchantCardTime string `json:"merchant_card_time"` // 商户卡有效期
- Inventory string `json:"inventory"` // 库存数量
- QuotaNum string `json:"quota_num"` // 限购数量
- UseRule string `json:"use_rule"` // 使用规则
- Picture string `json:"picture"` // 图片
- RebateRate string `json:"rebate_rate"` // 佣金比例
- CancelNumber int `json:"cancel_number"` //核销次数
- }
- type GetMerchantCardRequest struct {
- MerchantId int64 `json:"merchant_card_id"` //商户卡id
- Code string `json:"code"` //b邀请码
- }
- type GetMerchantCardReply struct {
- MerchantCardName string `json:"merchant_card_name"` // 商户卡名称
- MerchantOpenID string `json:"merchant_open_id"` // openid
- CardProjectData string `json:"card_project_data"` // 项目
- CardPrice string `json:"card_price"` // 单价
- ActivityEndTime string `json:"activity_end_time"` // 活动结束时间
- ActivityStartTime string `json:"activity_start_time"` // 活动开始时间
- MerchantCardTime string `json:"merchant_card_time"` // 商户卡有效期
- Inventory int64 `json:"inventory"` // 库存数量
- QuotaNum int64 `json:"quota_num"` // 限购数量
- UseRule string `json:"use_rule"` // 使用规则
- Picture string `json:"picture"` // 图片
- RebateRate int64 `json:"rebate_rate"`
- }
- // 画布详情
- type GetMerchantCanvasCardReply struct {
- Static Static `json:"static"`
- SwiperList []SwiperList `json:"swiperList"`
- RightButton []RightButton `json:"rightButton"`
- DataList []DataList `json:"dataList"`
- BuyKnowList []BuyKnowList `json:"buyKnowList"`
- ShopData ShopData `json:"shopData"`
- Base64Img string `json:"base64Img"`
- FenxiangShow bool `json:"fenxiangShow"`
- MerchantAmount decimal.Decimal `json:"merchantAmount"`
- MerchantOriginalAmount decimal.Decimal `json:"merchantOriginalAmount"`
- Inventory int64 `json:"inventory"`
- IsShare bool `json:"isShare"`
- InvitationCode string `json:"invitationCode"`
- }
- type Static struct {
- Background string `json:"background"`
- }
- type SwiperList struct {
- ID int `json:"id"`
- URL string `json:"url"`
- }
- type RightButton struct {
- ImageURL string `json:"imageUrl"`
- }
- type DataList struct {
- Name string `json:"name"`
- Count int `json:"count"`
- Price string `json:"price"`
- }
- type BuyKnowList struct {
- Icon string `json:"icon"`
- Title string `json:"title"`
- Text string `json:"text"`
- }
- type ShopData struct {
- ImageURL string `json:"imageUrl"`
- Name string `json:"name"`
- StarRating int `json:"starRating"`
- Address string `json:"address"`
- Distance string `json:"distance"`
- }
- type MerchantCardListRequest struct {
- OpenId string `json:"open_id"`
- PageSize int `json:"page_size"`
- PageIndex int `json:"page_index"`
- TypeList int `json:"type_list"` //1-未开始 2-进行中 3-已结束
- }
- type MerchantCardListReply struct {
- ID int64 `json:"id"`
- MerchantCardName string `json:"merchant_card_name"` // 商户卡名称
- MerchantOpenID string `json:"merchant_open_id"` // openid
- CardProjectData string `json:"card_project_data"` // 项目
- CardPrice string `json:"card_price"` // 单价
- ActivityEndTime int64 `json:"activity_end_time"` // 活动结束时间
- ActivityStartTime int64 `json:"activity_start_time"` // 活动开始时间
- MerchantCardTime int64 `json:"merchant_card_time"` // 商户卡有效期
- Inventory int64 `json:"inventory"` // 库存数量
- QuotaNum int64 `json:"quota_num"` // 限购数量
- UseRule string `json:"use_rule"` // 使用规则
- Picture string `json:"picture"` // 图片
- RebateRate int64 `json:"rebate_rate"` // 佣金比例
- CreateBy int64 `json:"create_by"` // 创建者
- UpdateBy int64 `json:"update_by"` // 更新者
- CreatedAt time.Time `json:"created_at"` // 创建时间
- UpdatedAt time.Time `json:"updated_at"` // 最后更新时间
- DeletedAt time.Time `json:"deleted_at"`
- RebateAmount string `json:"rebate_amount"` // 佣金
- }
- type UpdateMerchantCardRequest struct {
- ID int64 `json:"id"`
- ActivityEndTime int64 `json:"activity_end_time"` // 活动结束时间
- ActivityStartTime int64 `json:"activity_start_time"` // 活动开始时间
- Inventory int64 `json:"inventory"` // 库存数量
- QuotaNum int64 `json:"quota_num"` // 限购数量
- UseRule string `json:"use_rule"` // 使用规则
- Picture string `json:"picture"` // 图片
- }
|