123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- package models
- import (
- "github.com/shopspring/decimal"
- "time"
- )
- type CreateMerchantCardRequest struct {
- MerchantCardName string `json:"merchant_card_name"`
- MerchantOpenID string `json:"open_id"`
- CardProjectData []int64 `json:"card_project_data"`
- CardPrice string `json:"card_price"`
- CardTotalPrice string `json:"card_total_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 string `json:"cancel_number"`
- BackgroundImage string `json:"background_image"`
- }
- type GetMerchantCardRequest struct {
- MerchantId int64 `json:"merchant_card_id"`
- Code string `json:"code"`
- }
- type GetMerchantCardReply struct {
- MerchantCardName string `json:"merchant_card_name"`
- MerchantOpenID string `json:"merchant_open_id"`
- 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"`
- BackgroundImage string `json:"background_image"`
- W string `json:"w"`
- H string `json:"h"`
- X string `json:"x"`
- Y string `json:"y"`
- CardTotalPrice string `json:"card_total_price"`
- }
- 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"`
- QRUrl string `json:"qrUrl"`
- }
- 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"`
- }
- type MerchantCardListReply struct {
- ID int64 `json:"id"`
- MerchantCardName string `json:"merchant_card_name"`
- MerchantOpenID string `json:"merchant_open_id"`
- 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"`
- SaleCardNumber int `json:"sale_card_number"`
- ActivityEnd string `json:"activity_end"`
- ActivityStart string `json:"activity_start"`
- }
- 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"`
- }
- type UpdateMerchantCardWHXYRequest struct {
- Whxy string `json:"whxy"`
- MerchantCardId int64 `json:"merchant_card_id"`
- }
- type WHXYStr struct {
- Type string `json:"type"`
- URL string `json:"url"`
- Y decimal.Decimal `json:"y,omitempty"`
- X decimal.Decimal `json:"x,omitempty"`
- W decimal.Decimal `json:"w,omitempty"`
- H decimal.Decimal `json:"h,omitempty"`
-
-
- }
|