Versions in this module Expand all Collapse all v0 v0.2.12 Jan 7, 2022 Changes in this version + type CouponApiService services.Service + func (s *CouponApiService) GetStocks(ctx context.Context, req GetStocksRequest) (resp *StocksPagination, result *core.APIResult, err error) + func (s *CouponApiService) GiveCoupon(ctx context.Context, req GiveCouponRequest) (resp *GiveCouponResponse, result *core.APIResult, err error) + type GetStocksRequest struct + CreateEndTime *time.Time + CreateStartTime *time.Time + Limit uint32 + Offset uint32 + Status *string + StockCreatorMchID string + type GiveCouponRequest struct + AppID string + OpenID *string + OutRequestNo string + StockCreatorMchID string + StockID string + type GiveCouponResponse struct + CouponID string + type RuleFixedNormalCoupon struct + CouponAmount *int64 + TransactionMinimum *int64 + type Stock struct + AvailableBeginTime *time.Time + AvailableEndTime *time.Time + CreateTime *time.Time + CutToMessage *StockCutToMessage + Description *string + DistributedCoupons *int64 + NoCash *bool + SingleItem *bool + StartTime *time.Time + Status *string + StockCreatorMchID *string + StockID *string + StockName *string + StockType *string + StockUseRule *StockUseRule + StopTime *time.Time + type StockCutToMessage struct + CutToPrice *int64 + SinglePriceMax *int64 + type StockUseRule struct + CombineUse *bool + CouponType *string + FixedNormalCoupon *RuleFixedNormalCoupon + MaxAmount *int64 + MaxAmountByDay *int64 + MaxCoupons *int64 + MaxCouponsPerUser *int32 + TradeType []string + type StocksPagination struct + Data []Stock + Limit uint32 + Offset uint32 + Total int64