Documentation ¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
coupon.proto
It has these top-level messages:
CouponInfo PointInfoList CouponBalanceInfo CouponBalanceList CouponAllowanceInfo CouponAllowanceList
Index ¶
- Constants
- Variables
- func PlatfromLimitExplain(pstr string, platMap map[string]string) string
- type ArgAdd
- type ArgAllowance
- type ArgAllowanceCheck
- type ArgAllowanceCoupon
- type ArgAllowanceCoupons
- type ArgAllowanceList
- type ArgAllowanceMid
- type ArgCount
- type ArgCoupon
- type ArgJuageUsable
- type ArgMid
- type ArgNotify
- type ArgPage
- type ArgPrizeDraw
- type ArgRPCPage
- type ArgReceiveAllowance
- type ArgSalary
- type ArgSalaryCoupon
- type ArgUsablePirces
- type ArgUseAllowance
- type ArgUseCartoonCoupon
- type ArgUseCoupon
- type ArgUseCouponCode
- type ChangeCoupon
- type CouponAllowanceChangeLog
- type CouponAllowanceInfo
- func (*CouponAllowanceInfo) Descriptor() ([]byte, []int)
- func (m *CouponAllowanceInfo) Marshal() (dAtA []byte, err error)
- func (m *CouponAllowanceInfo) MarshalTo(dAtA []byte) (int, error)
- func (*CouponAllowanceInfo) ProtoMessage()
- func (m *CouponAllowanceInfo) Reset()
- func (m *CouponAllowanceInfo) Size() (n int)
- func (m *CouponAllowanceInfo) String() string
- func (m *CouponAllowanceInfo) Unmarshal(dAtA []byte) error
- type CouponAllowanceList
- func (*CouponAllowanceList) Descriptor() ([]byte, []int)
- func (m *CouponAllowanceList) Marshal() (dAtA []byte, err error)
- func (m *CouponAllowanceList) MarshalTo(dAtA []byte) (int, error)
- func (*CouponAllowanceList) ProtoMessage()
- func (m *CouponAllowanceList) Reset()
- func (m *CouponAllowanceList) Size() (n int)
- func (m *CouponAllowanceList) String() string
- func (m *CouponAllowanceList) Unmarshal(dAtA []byte) error
- type CouponAllowancePanelInfo
- type CouponAllowancePanelResp
- type CouponBalanceChangeLog
- type CouponBalanceInfo
- func (*CouponBalanceInfo) Descriptor() ([]byte, []int)
- func (m *CouponBalanceInfo) Marshal() (dAtA []byte, err error)
- func (m *CouponBalanceInfo) MarshalTo(dAtA []byte) (int, error)
- func (*CouponBalanceInfo) ProtoMessage()
- func (m *CouponBalanceInfo) Reset()
- func (m *CouponBalanceInfo) Size() (n int)
- func (m *CouponBalanceInfo) String() string
- func (m *CouponBalanceInfo) Unmarshal(dAtA []byte) error
- type CouponBalanceList
- func (*CouponBalanceList) Descriptor() ([]byte, []int)
- func (m *CouponBalanceList) Marshal() (dAtA []byte, err error)
- func (m *CouponBalanceList) MarshalTo(dAtA []byte) (int, error)
- func (*CouponBalanceList) ProtoMessage()
- func (m *CouponBalanceList) Reset()
- func (m *CouponBalanceList) Size() (n int)
- func (m *CouponBalanceList) String() string
- func (m *CouponBalanceList) Unmarshal(dAtA []byte) error
- type CouponBatchInfo
- type CouponCartoonPageResp
- type CouponChangeLog
- type CouponCode
- type CouponInfo
- func (*CouponInfo) Descriptor() ([]byte, []int)
- func (m *CouponInfo) Marshal() (dAtA []byte, err error)
- func (m *CouponInfo) MarshalTo(dAtA []byte) (int, error)
- func (*CouponInfo) ProtoMessage()
- func (m *CouponInfo) Reset()
- func (m *CouponInfo) Size() (n int)
- func (m *CouponInfo) String() string
- func (m *CouponInfo) Unmarshal(dAtA []byte) error
- type CouponOrder
- type CouponOrderLog
- type CouponPageRPCResp
- type CouponPageResp
- type CouponReceiveLog
- type CouponTipInfo
- type CouponUserCard
- type OrderInfo
- type PointInfoList
- func (*PointInfoList) Descriptor() ([]byte, []int)
- func (m *PointInfoList) Marshal() (dAtA []byte, err error)
- func (m *PointInfoList) MarshalTo(dAtA []byte) (int, error)
- func (*PointInfoList) ProtoMessage()
- func (m *PointInfoList) Reset()
- func (m *PointInfoList) Size() (n int)
- func (m *PointInfoList) String() string
- func (m *PointInfoList) Unmarshal(dAtA []byte) error
- type PrizeCardRep
- type PrizeCards
- type SalaryCouponForThirdResp
- type Token
- type UseCouponCodeResp
Constants ¶
const ( CodeStateNotUse = iota + 1 CodeStateUsed CodeStateBlock )
coupon code state.
const ( ProdLimRenewalAll int8 = iota ProdLimRenewalAuto ProdLimRenewalNotAuto )
coupon_batch_info表 product_limit_renewal字段.
const ( None int8 = 0 ProdLimMonth1 = 1 ProdLimMonth3 = 3 ProdLimMonth12 = 12 )
coupon_batch_info表 product_limit_renewal字段.
const ( CardType1 int8 = iota CardType3 CardType12 )
CardType table:coupon_user_card field:card_type
const ( CardStateNotOpen int8 = iota CardStateOpened CardStateUsed )
CardState table:coupon_user_card field:state
const ( UseFaild int8 = iota UseSuccess )
coupon use state.
const ( NotUsed = iota InUse Used Expire Block )
coupon state.
const ( WaitPay = iota InPay PaySuccess PayFaild )
coupon state.
const ( VipSalary int8 = iota + 1 SystemAdminSalary Consume ConsumeFaildBack )
blance change type
const ( CouponVideo = iota + 1 CouponCartoon CouponAllowance )
coupon type
const ( AllowanceNone = iota AllowanceSystemAdmin AllowanceBusinessReceive AllowanceBusinessNewYear AllowanceCodeOpen )
allowance origin
const ( BatchStateNormal = iota BatchStateBlock )
batch state
const ( CouponHadBlock = "代金券已被冻结" CouponFullAmountDissatisfy = "未达到满额条件" CouponNotInUsableTime = "当前不在有效期内" CouponInUse = "已绑定在其他未支付订单,点击解锁" CouponPlatformExplain = "当前平台不可使用" CouponProductExplain = "当前商品不可使用" )
coupon disables explains
const ( ScopeNoLimit = "不限使用平台" ScopePlatFmt = "仅限%s端," ScopeProductFmt = "购买%s%s大会员时使用" )
coupon scope explains
const ( ReceiveMessageTitle = "大会员代金券到账通知" ReceiveMessage = "" /* 165-byte string literal not displayed */ )
coupon send message
const ( DeviceIOS int = iota + 1 DeviceIPAD DevicePC DeviceANDROID DeviceIPADHD DeviceIOSBLUE DeviceANDROIDBLUE DevicePUBLIC )
device code
const ( CouponFullAmountLimit = "满%s元可用" CouponAllowanceName = "大会员代金券" )
coupon format
const ( AllowanceSalary int8 = iota + 1 AllowanceConsume AllowanceCancel AllowanceConsumeSuccess AllowanceConsumeFaild AllowanceReceive )
allowance change type
const ( AllowanceUseFaild int8 = iota AllowanceUseSuccess )
allowance notify pay status
const ( AllowanceDisables int8 = iota AllowanceUsable )
allowance able state
const ( CouponTipNotUse = "不使用代金券" CouponTipChooseOther = "选中其他商品有惊喜" CouponTipUse = "抵扣%.2f元" CouponTipInUse = "有代金券被锁定" )
coupon tip.
const (
// CardSalt .
CardSalt = "7RbjA6mpSz9DYQ0n"
)
const (
MaxSalaryCount = 100
)
max salary count.
const (
Seleted = 1
)
coupon seleted
Variables ¶
var ( ProdLimMonthMap = map[int8]string{None: "", ProdLimMonth1: "月度", ProdLimMonth3: "季度", ProdLimMonth12: "年度"} ProdLimRenewalMap = map[int8]string{ProdLimRenewalAll: "", ProdLimRenewalAuto: "自动续期", ProdLimRenewalNotAuto: "非自动续期"} )
product limit map .
var ( ErrInvalidLengthCoupon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCoupon = fmt.Errorf("proto: integer overflow") )
var MapFullAmount = map[int8]float64{ CardType1: 25, CardType3: 68, CardType12: 233, }
MapFullAmount .
var PlatformByCode = map[int]string{ DeviceIOS: "ios", DeviceIPAD: "ipad", DevicePC: "网页", DeviceANDROID: "Android", }
PlatformByCode device name map.
var PlatformByName = map[string]int{ "ios": DeviceIOS, "ios_b": DeviceIOS, "ipad": DeviceIPAD, "ipadhd": DeviceIPAD, "pc": DevicePC, "public": DevicePC, "android": DeviceANDROID, "android_b": DeviceANDROID, }
PlatformByName .
var PlatfromMapping = map[int]int{ DeviceIPADHD: DeviceIPAD, DeviceIOSBLUE: DeviceIOS, DeviceANDROIDBLUE: DeviceANDROID, DevicePUBLIC: DevicePC, }
PlatfromMapping .
Functions ¶
Types ¶
type ArgAdd ¶
type ArgAdd struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` StartTime int64 `form:"start_time"` ExpireTime int64 `form:"expire_time" validate:"required,min=1,gte=1"` Type int64 `form:"type" validate:"required,min=1,gte=1"` Origin int64 `form:"origin" validate:"required,min=1,gte=1"` }
ArgAdd .
type ArgAllowanceCheck ¶
type ArgAllowanceCheck struct { Mid int64 `form:"mid" validate:"required" json:"mid"` OrderNo string `form:"order_no" validate:"required" json:"order_no"` }
ArgAllowanceCheck .
type ArgAllowanceCoupon ¶
type ArgAllowanceCoupon struct { Mid int64 Pirce float64 Platform int ProdLimMonth int8 ProdLimRenewal int8 }
ArgAllowanceCoupon def .
type ArgAllowanceCoupons ¶
ArgAllowanceCoupons arg allowance coupon.
type ArgCount ¶
type ArgCount struct {
Mid int64 `form:"mid" validate:"required,min=1,gte=1"`
}
ArgCount allowance count.
type ArgCoupon ¶
type ArgCoupon struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` CouponToken string `form:"coupon_token" validate:"required"` }
ArgCoupon .
type ArgJuageUsable ¶
type ArgJuageUsable struct { Mid int64 Pirce float64 CouponToken string Platform int ProdLimMonth int8 ProdLimRenewal int8 }
ArgJuageUsable def .
type ArgMid ¶
type ArgMid struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` Type int8 `form:"type" validate:"required,min=1,gte=1"` }
ArgMid .
type ArgPrizeDraw ¶
type ArgPrizeDraw struct { Mid int64 `form:"mid" validate:"required,gte=1"` CardType int8 `form:"card_type" validate:"gte=0,lte=2" json:"card_type"` }
ArgPrizeDraw struct .
type ArgReceiveAllowance ¶
type ArgReceiveAllowance struct { Mid int64 `form:"mid" validate:"required" json:"mid"` BatchToken string `form:"batch_token" validate:"required" json:"batch_token"` OrderNo string `form:"order_no" validate:"required" json:"order_no"` Appkey string `form:"appkey" validate:"required" json:"appkey"` }
ArgReceiveAllowance .
type ArgSalary ¶
type ArgSalary struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` CouponType int64 `form:"type" validate:"required,min=1,gte=1"` Count int `form:"count" validate:"required,min=1,gte=1"` BatchToken string `form:"batch_no" validate:"required"` AppID int64 `form:"app_id"` }
ArgSalary salary coupon.
type ArgSalaryCoupon ¶
type ArgSalaryCoupon struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` CouponType int64 `form:"type" validate:"required,min=1,gte=1"` Origin int64 Count int `form:"count" validate:"required,min=1,gte=1"` BatchToken string `form:"batch_no" validate:"required"` AppID int64 `form:"app_id"` UniqueNo string }
ArgSalaryCoupon salary coupon.
type ArgUsablePirces ¶
type ArgUsablePirces struct { Mid int64 Pirce []float64 Platform int ProdLimMonth int8 ProdLimRenewal int8 }
ArgUsablePirces def .
type ArgUseAllowance ¶
type ArgUseAllowance struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` CouponToken string `form:"coupon_token" validate:"required"` Remark string `form:"remark" validate:"required"` OrderNO string `form:"order_id" validate:"required"` Price float64 `form:"price" validate:"required"` Platform string `form:"platform" default:"pc"` MobiApp string `form:"mobi_app"` PanelType string `form:"panel_type" default:"normal"` Device string `form:"device"` Build int64 `form:"build"` ProdLimMonth int8 `form:"product_limit_month"` ProdLimRenewal int8 `form:"product_limit_renewal"` }
ArgUseAllowance allowance coupon use.
type ArgUseCartoonCoupon ¶
type ArgUseCartoonCoupon struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` Type int8 `form:"type" validate:"required,min=1,gte=1"` Tips string `form:"tips" validate:"required"` Remark string `form:"remark" validate:"required"` OrderNO string `form:"order_id" validate:"required"` Count int64 `form:"count" validate:"required,min=1,gte=1"` Ver int64 `form:"ver" validate:"required,min=1,gte=1"` }
ArgUseCartoonCoupon def .
type ArgUseCoupon ¶
type ArgUseCoupon struct { Mid int64 `form:"mid" validate:"required,min=1,gte=1"` Type int8 `form:"type" validate:"required,min=1,gte=1"` Remark string `form:"remark" validate:"required"` OrderNO string `form:"order_id" validate:"required"` Oid int64 `form:"oid" validate:"required,min=1,gte=1"` Ver int64 `form:"ver" validate:"required,min=1,gte=1"` }
ArgUseCoupon .
type ArgUseCouponCode ¶
type ArgUseCouponCode struct { Token string `form:"token" validate:"required"` Code string `form:"code" validate:"required"` Verify string `form:"verify" validate:"required"` IP string Mid int64 }
ArgUseCouponCode arg use coupon code.
type ChangeCoupon ¶
type ChangeCoupon struct { Mid int64 `form:"mid"` CouponToken string `form:"coupon_token"` Ver int64 `form:"ver"` UseVer int64 `form:"use_ver"` }
ChangeCoupon .
type CouponAllowanceChangeLog ¶
type CouponAllowanceChangeLog struct { ID int64 `json:"-"` CouponToken string `json:"coupon_token"` OrderNO string `json:"order_no"` Mid int64 `json:"mid"` State int8 `json:"state"` ChangeType int8 `json:"change_type"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
CouponAllowanceChangeLog coupon allowance change log.
type CouponAllowanceInfo ¶
type CouponAllowanceInfo struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"_"` CouponToken string `protobuf:"bytes,2,opt,name=CouponToken,proto3" json:"coupon_token"` Mid int64 `protobuf:"varint,3,opt,name=Mid,proto3" json:"mid"` State int32 `protobuf:"varint,4,opt,name=State,proto3" json:"state"` StartTime int64 `protobuf:"varint,5,opt,name=StartTime,proto3" json:"start_time"` ExpireTime int64 `protobuf:"varint,6,opt,name=ExpireTime,proto3" json:"expire_time"` Origin int64 `protobuf:"varint,7,opt,name=Origin,proto3" json:"origin"` OrderNO string `protobuf:"bytes,8,opt,name=OrderNO,proto3" json:"order_no"` Ver int64 `protobuf:"varint,9,opt,name=Ver,proto3" json:"ver"` Remark string `protobuf:"bytes,10,opt,name=Remark,proto3" json:"remark"` CTime go_common_library_time.Time `protobuf:"varint,11,opt,name=CTime,proto3,casttype=go-common/library/time.Time" json:"-"` MTime go_common_library_time.Time `protobuf:"varint,12,opt,name=MTime,proto3,casttype=go-common/library/time.Time" json:"-"` BatchToken string `protobuf:"bytes,13,opt,name=BatchToken,proto3" json:"batch_token"` Amount float64 `protobuf:"fixed64,14,opt,name=Amount,proto3" json:"amount"` FullAmount float64 `protobuf:"fixed64,15,opt,name=FullAmount,proto3" json:"full_amount"` AppID int64 `protobuf:"varint,16,opt,name=AppID,proto3" json:"app_id"` }
func (*CouponAllowanceInfo) Descriptor ¶
func (*CouponAllowanceInfo) Descriptor() ([]byte, []int)
func (*CouponAllowanceInfo) Marshal ¶
func (m *CouponAllowanceInfo) Marshal() (dAtA []byte, err error)
func (*CouponAllowanceInfo) MarshalTo ¶
func (m *CouponAllowanceInfo) MarshalTo(dAtA []byte) (int, error)
func (*CouponAllowanceInfo) ProtoMessage ¶
func (*CouponAllowanceInfo) ProtoMessage()
func (*CouponAllowanceInfo) Reset ¶
func (m *CouponAllowanceInfo) Reset()
func (*CouponAllowanceInfo) Size ¶
func (m *CouponAllowanceInfo) Size() (n int)
func (*CouponAllowanceInfo) String ¶
func (m *CouponAllowanceInfo) String() string
func (*CouponAllowanceInfo) Unmarshal ¶
func (m *CouponAllowanceInfo) Unmarshal(dAtA []byte) error
type CouponAllowanceList ¶
type CouponAllowanceList struct {
CouponAllowanceList []*CouponAllowanceInfo `protobuf:"bytes,1,rep,name=couponAllowanceList" json:"couponAllowanceList,omitempty"`
}
func (*CouponAllowanceList) Descriptor ¶
func (*CouponAllowanceList) Descriptor() ([]byte, []int)
func (*CouponAllowanceList) Marshal ¶
func (m *CouponAllowanceList) Marshal() (dAtA []byte, err error)
func (*CouponAllowanceList) MarshalTo ¶
func (m *CouponAllowanceList) MarshalTo(dAtA []byte) (int, error)
func (*CouponAllowanceList) ProtoMessage ¶
func (*CouponAllowanceList) ProtoMessage()
func (*CouponAllowanceList) Reset ¶
func (m *CouponAllowanceList) Reset()
func (*CouponAllowanceList) Size ¶
func (m *CouponAllowanceList) Size() (n int)
func (*CouponAllowanceList) String ¶
func (m *CouponAllowanceList) String() string
func (*CouponAllowanceList) Unmarshal ¶
func (m *CouponAllowanceList) Unmarshal(dAtA []byte) error
type CouponAllowancePanelInfo ¶
type CouponAllowancePanelInfo struct { CouponToken string `json:"coupon_token"` Amount float64 `json:"coupon_amount"` State int32 `json:"state"` FullLimitExplain string `json:"full_limit_explain"` ScopeExplain string `json:"scope_explain"` FullAmount float64 `json:"full_amount"` CouponDiscountPrice float64 `json:"coupon_discount_price"` StartTime int64 `json:"start_time"` ExpireTime int64 `json:"expire_time"` Selected int8 `json:"selected"` DisablesExplains string `json:"disables_explains"` OrderNO string `json:"order_no"` Name string `json:"name"` Usable int8 `json:"usable"` }
CouponAllowancePanelInfo allowance coupon panel info.
func (*CouponAllowancePanelInfo) ScopeExplainFmt ¶
func (c *CouponAllowancePanelInfo) ScopeExplainFmt(pstr string, prodLimMonth, prodLimRenewal int8, platMap map[string]string)
ScopeExplainFmt get scope explain fmt.
type CouponAllowancePanelResp ¶
type CouponAllowancePanelResp struct { Usables []*CouponAllowancePanelInfo `json:"usables"` Disables []*CouponAllowancePanelInfo `json:"disables"` Using []*CouponAllowancePanelInfo `json:"using"` }
CouponAllowancePanelResp def.
type CouponBalanceChangeLog ¶
type CouponBalanceChangeLog struct { ID int64 `json:"id"` OrderNo string `json:"order_no"` Mid int64 `json:"mid"` BatchToken string `json:"batch_token"` Balance int64 `json:"balance"` ChangeBalance int64 `json:"change_balance"` ChangeType int8 `json:"change_type"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
CouponBalanceChangeLog coupon balance change log.
type CouponBalanceInfo ¶
type CouponBalanceInfo struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"_"` BatchToken string `protobuf:"bytes,2,opt,name=BatchToken,proto3" json:"batch_token"` Mid int64 `protobuf:"varint,3,opt,name=Mid,proto3" json:"mid"` Balance int64 `protobuf:"varint,4,opt,name=Balance,proto3" json:"balance"` StartTime int64 `protobuf:"varint,5,opt,name=StartTime,proto3" json:"start_time"` ExpireTime int64 `protobuf:"varint,6,opt,name=ExpireTime,proto3" json:"expire_time"` Origin int64 `protobuf:"varint,7,opt,name=Origin,proto3" json:"origin"` CouponType int64 `protobuf:"varint,8,opt,name=CouponType,proto3" json:"coupon_type"` Ver int64 `protobuf:"varint,9,opt,name=Ver,proto3" json:"ver"` CTime go_common_library_time.Time `protobuf:"varint,10,opt,name=CTime,proto3,casttype=go-common/library/time.Time" json:"-"` MTime go_common_library_time.Time `protobuf:"varint,11,opt,name=MTime,proto3,casttype=go-common/library/time.Time" json:"-"` }
func (*CouponBalanceInfo) Descriptor ¶
func (*CouponBalanceInfo) Descriptor() ([]byte, []int)
func (*CouponBalanceInfo) Marshal ¶
func (m *CouponBalanceInfo) Marshal() (dAtA []byte, err error)
func (*CouponBalanceInfo) MarshalTo ¶
func (m *CouponBalanceInfo) MarshalTo(dAtA []byte) (int, error)
func (*CouponBalanceInfo) ProtoMessage ¶
func (*CouponBalanceInfo) ProtoMessage()
func (*CouponBalanceInfo) Reset ¶
func (m *CouponBalanceInfo) Reset()
func (*CouponBalanceInfo) Size ¶
func (m *CouponBalanceInfo) Size() (n int)
func (*CouponBalanceInfo) String ¶
func (m *CouponBalanceInfo) String() string
func (*CouponBalanceInfo) Unmarshal ¶
func (m *CouponBalanceInfo) Unmarshal(dAtA []byte) error
type CouponBalanceList ¶
type CouponBalanceList struct {
CouponBalanceList []*CouponBalanceInfo `protobuf:"bytes,1,rep,name=couponBalanceList" json:"couponBalanceList,omitempty"`
}
func (*CouponBalanceList) Descriptor ¶
func (*CouponBalanceList) Descriptor() ([]byte, []int)
func (*CouponBalanceList) Marshal ¶
func (m *CouponBalanceList) Marshal() (dAtA []byte, err error)
func (*CouponBalanceList) MarshalTo ¶
func (m *CouponBalanceList) MarshalTo(dAtA []byte) (int, error)
func (*CouponBalanceList) ProtoMessage ¶
func (*CouponBalanceList) ProtoMessage()
func (*CouponBalanceList) Reset ¶
func (m *CouponBalanceList) Reset()
func (*CouponBalanceList) Size ¶
func (m *CouponBalanceList) Size() (n int)
func (*CouponBalanceList) String ¶
func (m *CouponBalanceList) String() string
func (*CouponBalanceList) Unmarshal ¶
func (m *CouponBalanceList) Unmarshal(dAtA []byte) error
type CouponBatchInfo ¶
type CouponBatchInfo struct { ID int64 `json:"id"` AppID int64 `json:"app_id"` Name string `json:"name"` BatchToken string `json:"batch_token"` MaxCount int64 `json:"max_count"` CurrentCount int64 `json:"current_count"` LimitCount int64 `json:"limit_count"` StartTime int64 `json:"start_time"` ExpireTime int64 `json:"expire_time"` ExpireDay int64 `json:"expire_day"` Ver int64 `json:"ver"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` FullAmount float64 `json:"full_amount"` Amount float64 `json:"amount"` State int8 `json:"state"` CouponType int8 `json:"coupon_type"` PlatformLimit string `json:"platform_limit"` ProdLimMonth int8 `json:"product_limit_month"` ProdLimRenewal int8 `json:"product_limit_Renewal"` }
CouponBatchInfo coupon batch info.
type CouponCartoonPageResp ¶
type CouponCartoonPageResp struct { Count int64 `json:"count"` CouponCount int64 `json:"coupon_count"` List []*CouponPageResp `json:"list"` }
CouponCartoonPageResp coupon cartoon page.
type CouponChangeLog ¶
type CouponChangeLog struct { ID int64 `json:"-"` CouponToken string `json:"coupon_token"` Mid int64 `json:"mid"` State int8 `json:"state"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
CouponChangeLog coupon change log.
type CouponCode ¶
type CouponCode struct { ID int64 BatchToken string State int32 Code string Mid int64 CouponType int32 CouponToken string Ver int64 }
CouponCode coupon code.
type CouponInfo ¶
type CouponInfo struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"_"` CouponToken string `protobuf:"bytes,2,opt,name=CouponToken,proto3" json:"coupon_token"` Mid int64 `protobuf:"varint,3,opt,name=Mid,proto3" json:"mid"` State int64 `protobuf:"varint,4,opt,name=State,proto3" json:"state"` StartTime int64 `protobuf:"varint,5,opt,name=StartTime,proto3" json:"start_time"` ExpireTime int64 `protobuf:"varint,6,opt,name=ExpireTime,proto3" json:"expire_time"` Origin int64 `protobuf:"varint,7,opt,name=Origin,proto3" json:"origin"` CouponType int64 `protobuf:"varint,8,opt,name=CouponType,proto3" json:"coupon_type"` OrderNO string `protobuf:"bytes,9,opt,name=OrderNO,proto3" json:"order_no"` Ver int64 `protobuf:"varint,10,opt,name=Ver,proto3" json:"ver"` Oid int64 `protobuf:"varint,11,opt,name=Oid,proto3" json:"oid"` Remark string `protobuf:"bytes,12,opt,name=Remark,proto3" json:"remark"` UseVer int64 `protobuf:"varint,13,opt,name=UseVer,proto3" json:"use_ver"` CTime go_common_library_time.Time `protobuf:"varint,14,opt,name=CTime,proto3,casttype=go-common/library/time.Time" json:"-"` MTime go_common_library_time.Time `protobuf:"varint,15,opt,name=MTime,proto3,casttype=go-common/library/time.Time" json:"-"` BatchToken string `protobuf:"bytes,16,opt,name=BatchToken,proto3" json:"batch_token"` }
func (*CouponInfo) Descriptor ¶
func (*CouponInfo) Descriptor() ([]byte, []int)
func (*CouponInfo) Marshal ¶
func (m *CouponInfo) Marshal() (dAtA []byte, err error)
func (*CouponInfo) ProtoMessage ¶
func (*CouponInfo) ProtoMessage()
func (*CouponInfo) Reset ¶
func (m *CouponInfo) Reset()
func (*CouponInfo) Size ¶
func (m *CouponInfo) Size() (n int)
func (*CouponInfo) String ¶
func (m *CouponInfo) String() string
func (*CouponInfo) Unmarshal ¶
func (m *CouponInfo) Unmarshal(dAtA []byte) error
type CouponOrder ¶
type CouponOrder struct { ID int64 `json:"id"` OrderNo string `json:"order_no"` Mid int64 `json:"mid"` Count int64 `json:"count"` State int8 `json:"state"` CouponType int8 `json:"coupon_type"` ThirdTradeNo string `json:"third_trade_no"` Remark string `json:"remark"` Tips string `json:"tips"` UseVer int64 `json:"use_ver"` Ver int64 `json:"ver"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
CouponOrder coupon order info.
type CouponOrderLog ¶
type CouponOrderLog struct { ID int64 `json:"id"` OrderNo string `json:"order_no"` Mid int64 `json:"mid"` State int8 `json:"state"` Ctime time.Time `json:"ctime"` Mtime time.Time `json:"mtime"` }
CouponOrderLog coupon order log.
type CouponPageRPCResp ¶
type CouponPageRPCResp struct { Count int64 `json:"count"` Res []*CouponPageResp `json:"list"` }
CouponPageRPCResp def.
type CouponPageResp ¶
type CouponPageResp struct { ID int64 `json:"id"` Title string `json:"title"` Time int64 `json:"time"` RefID int64 `json:"ref_id"` Tips string `json:"tips"` Count int64 `json:"count"` }
CouponPageResp coupon page.
type CouponReceiveLog ¶
type CouponReceiveLog struct { ID int64 `json:"id"` Appkey string `json:"appkey"` OrderNo string `json:"order_no"` Mid int64 `json:"mid"` CouponToken string `json:"coupon_token"` CouponType int8 `json:"coupon_type"` }
CouponReceiveLog receive log.
type CouponTipInfo ¶
type CouponTipInfo struct { CouponTip string `json:"coupon_tip"` CouponInfo *CouponAllowancePanelInfo `json:"coupon_info"` }
CouponTipInfo coupon tip info.
type CouponUserCard ¶
type CouponUserCard struct { MID int64 `json:"mid"` CardType int8 `json:"card_type"` State int8 `json:"state"` BatchToken string `json:"batch_token"` CouponToken string `json:"coupon_token"` ActID int64 `json:"act_id"` }
CouponUserCard struct .
type OrderInfo ¶
type OrderInfo struct { ID int64 OrderNo string AppID int64 OrderType int8 Platform int8 Mid int64 ToMid int64 BuyMonths int16 Money float64 RefundAmount float64 Status int8 PayType string RechargeBP float64 ThirdTradeNo string PaymentTime time.Time Ver int64 Ctime time.Time Mtime time.Time AppSubID string }
OrderInfo order info.
type PointInfoList ¶
type PointInfoList struct {
PointInfoList []*CouponInfo `protobuf:"bytes,1,rep,name=pointInfoList" json:"pointInfoList,omitempty"`
}
func (*PointInfoList) Descriptor ¶
func (*PointInfoList) Descriptor() ([]byte, []int)
func (*PointInfoList) Marshal ¶
func (m *PointInfoList) Marshal() (dAtA []byte, err error)
func (*PointInfoList) ProtoMessage ¶
func (*PointInfoList) ProtoMessage()
func (*PointInfoList) Reset ¶
func (m *PointInfoList) Reset()
func (*PointInfoList) Size ¶
func (m *PointInfoList) Size() (n int)
func (*PointInfoList) String ¶
func (m *PointInfoList) String() string
func (*PointInfoList) Unmarshal ¶
func (m *PointInfoList) Unmarshal(dAtA []byte) error
type PrizeCardRep ¶
type PrizeCardRep struct { CardType int8 `json:"card_type"` State int8 `json:"state"` OriginalPrice int64 `json:"original_price,omitempty"` CouponAmount int64 `json:"coupon_amount,omitempty"` DiscountRate string `json:"discount_rate,omitempty"` }
PrizeCardRep struct .
type SalaryCouponForThirdResp ¶
type SalaryCouponForThirdResp struct { Amount float64 `json:"amount"` FullAmount float64 `json:"full_amount"` Description string `json:"description"` }
SalaryCouponForThirdResp resp.
type UseCouponCodeResp ¶
type UseCouponCodeResp struct { CouponToken string `json:"coupon_token"` CouponAmount float64 `json:"coupon_amount"` FullAmount float64 `json:"full_amount"` PlatfromLimitExplain string `json:"platfrom_limit_explain"` ProductLimitMonth int32 `json:"product_limit_month"` ProductLimitRenewal int32 `json:"product_limit_renewal"` }
UseCouponCodeResp use coupon code resp.