1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package models
- import "github.com/shopspring/decimal"
- type CreateDrawProductRequest struct {
- MerchantOpenID string `json:"merchant_open_id"`
- DrawProductName string `json:"draw_product_name"`
- DrawOdds int `json:"draw_odds"`
- IsPrize bool `json:"is_prize"`
- DrawUrl string `json:"draw_url"`
- TotalStock int `json:"total_stock"`
- }
- type DrawProductListRequest struct {
- OpenId string `json:"open_id"`
- PageSize int `json:"page_size"`
- PageIndex int `json:"page_index"`
- }
- type DrawProductListReply struct {
-
- ID int64 `json:"id"`
- MerchantOpenID string `json:"merchant_open_id"`
- DrawProductName string `json:"draw_product_name"`
- DrawOdds int `json:"draw_odds"`
- Stock int `json:"stock"`
- IsPrize bool `json:"is_prize"`
- DrawUrl string `json:"draw_url"`
- TotalStock int `json:"total_stock"`
- ActiveConfigID int64 `json:"active_config_id"`
- }
- type DrawProductInfo struct {
- ID int64 `json:"id"`
- MerchantOpenID string `json:"merchant_open_id"`
- DrawProductName string `json:"draw_product_name"`
- DrawOdds decimal.Decimal `json:"draw_odds"`
- Stock int `json:"stock"`
- IsPrize bool `json:"is_prize"`
- DrawUrl string `json:"draw_url"`
- TotalStock int `json:"total_stock"`
- ActiveConfigID int64 `json:"active_config_id"`
- }
|