Documentation ¶
Overview ¶
Code generated by argen. DO NOT EDIT. This code was generated from a template.
Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.
Generate info: argen@v1.11.0-b (Commit: 6934fae2)
Code generated by argen. DO NOT EDIT. This code was generated from a template.
Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.
Generate info: argen@v1.11.0-b (Commit: 6934fae2)
Code generated by argen. DO NOT EDIT. This code was generated from a template.
Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.
Generate info: argen@v1.11.0-b (Commit: 6934fae2)
Index ¶
- Constants
- func MarshalFinish(Finish *dictionary.Product) (any, error)
- func MarshalFixtures(objs []*Promoperiods) ([]byte, error)
- func MarshalPlatform(Platform map[string]interface{}) (any, error)
- func MarshalPrice(Price float64) (any, error)
- func PackKeyIndexCode(ctx context.Context, keys []string) ([][][]byte, error)
- func PackKeyIndexEmail(ctx context.Context, keys []string) ([][][]byte, error)
- func PackKeyIndexEmailAction(ctx context.Context, keys []EmailActionIndexType) ([][][]byte, error)
- func PackKeyIndexEmailCode(ctx context.Context, keys []EmailCodeIndexType) ([][][]byte, error)
- func PackKeyIndexEmailPart(ctx context.Context, keys []string) ([][][]byte, error)
- func PackKeyIndexID(ctx context.Context, keys []string) ([][][]byte, error)
- func PackKeyIndexPlanTypePrice(ctx context.Context, keys []PlanTypePriceIndexType) ([][][]byte, error)
- func SelectByCodeMockerLogger(keys []string, res PromoperiodsList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)
- func SelectByEmailActionMockerLogger(keys []EmailActionIndexType, res PromoperiodsList) func() (activerecord.MockerLogger, error)
- func SelectByEmailCodeMockerLogger(keys []EmailCodeIndexType, res PromoperiodsList) func() (activerecord.MockerLogger, error)
- func SelectByEmailMockerLogger(keys []string, res PromoperiodsList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)
- func SelectByEmailPartMockerLogger(keys []string, res PromoperiodsList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)
- func SelectByIDMockerLogger(keys []string, res PromoperiodsList) func() (activerecord.MockerLogger, error)
- func SelectByPlanTypePriceMockerLogger(keys []PlanTypePriceIndexType, res PromoperiodsList) func() (activerecord.MockerLogger, error)
- func SetFixtureUpdateOptions(obj *Promoperiods, updateOptions []PromoperiodsUpdateFixtureOptions)
- func UnpackAction(r *bytes.Reader) (ret string, errRet error)
- func UnpackCode(r *bytes.Reader) (ret string, errRet error)
- func UnpackEmail(r *bytes.Reader) (ret string, errRet error)
- func UnpackFinish(r *bytes.Reader) (ret *dictionary.Product, errRet error)
- func UnpackID(r *bytes.Reader) (ret string, errRet error)
- func UnpackKeyIndexCode(packedKeys [][][]byte) ([]string, error)
- func UnpackKeyIndexEmail(packedKeys [][][]byte) ([]string, error)
- func UnpackKeyIndexEmailPart(packedKeys [][][]byte) ([]string, error)
- func UnpackKeyIndexID(packedKeys [][][]byte) ([]string, error)
- func UnpackPlanID(r *bytes.Reader) (ret int32, errRet error)
- func UnpackPlanType(r *bytes.Reader) (ret string, errRet error)
- func UnpackPlatform(r *bytes.Reader) (ret map[string]interface{}, errRet error)
- func UnpackPlatforms(r *bytes.Reader) (ret uint32, errRet error)
- func UnpackPrice(r *bytes.Reader) (ret float64, errRet error)
- func UnpackPromobunch(r *bytes.Reader) (ret uint32, errRet error)
- func UnpackStart(r *bytes.Reader) (ret int32, errRet error)
- type EmailActionIndexType
- type EmailCodeIndexType
- type PlanTypePriceIndexType
- type Promoperiods
- func New(ctx context.Context) *Promoperiods
- func NewFromBox(ctx context.Context, tuples []octopus.TupleData) ([]*Promoperiods, error)
- func SelectByCode(ctx context.Context, key string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
- func SelectByCodes(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
- func SelectByEmail(ctx context.Context, key string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
- func SelectByEmailAction(ctx context.Context, key EmailActionIndexType) (*Promoperiods, error)
- func SelectByEmailActions(ctx context.Context, keys []EmailActionIndexType) ([]*Promoperiods, error)
- func SelectByEmailCode(ctx context.Context, key EmailCodeIndexType) (*Promoperiods, error)
- func SelectByEmailCodes(ctx context.Context, keys []EmailCodeIndexType) ([]*Promoperiods, error)
- func SelectByEmailPart(ctx context.Context, key string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
- func SelectByEmailParts(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
- func SelectByEmails(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
- func SelectByID(ctx context.Context, key string) (*Promoperiods, error)
- func SelectByIDs(ctx context.Context, keys []string) ([]*Promoperiods, error)
- func SelectByPlanTypePrice(ctx context.Context, key PlanTypePriceIndexType) (*Promoperiods, error)
- func SelectByPlanTypePrices(ctx context.Context, keys []PlanTypePriceIndexType) ([]*Promoperiods, error)
- func SelectByPrimary(ctx context.Context, pk string) (*Promoperiods, error)
- func TupleToStruct(ctx context.Context, tuple octopus.TupleData) (*Promoperiods, error)
- func UnmarshalDeleteFixtures(source []byte) []*Promoperiods
- func UnmarshalFixtures(source []byte) []*Promoperiods
- func UnmarshalInsertReplaceFixtures(source []byte) []*Promoperiods
- func UnmarshalUpdateFixtures(source []byte) []*Promoperiods
- func (obj *Promoperiods) ClearBitPlatforms(mutArg uint32) error
- func (obj *Promoperiods) ClearBitPromobunch(mutArg uint32) error
- func (obj *Promoperiods) ClearPlatformsandroid() error
- func (obj *Promoperiods) ClearPlatformshuawei() error
- func (obj *Promoperiods) ClearPlatformsios() error
- func (obj *Promoperiods) ClearPlatformsweb() error
- func (obj *Promoperiods) Delete(ctx context.Context) error
- func (obj *Promoperiods) Equal(anotherObjI any) bool
- func (obj *Promoperiods) GetAction() string
- func (obj *Promoperiods) GetCode() string
- func (obj *Promoperiods) GetEmail() string
- func (obj *Promoperiods) GetFinish() *dictionary.Product
- func (obj *Promoperiods) GetID() string
- func (obj *Promoperiods) GetPlan(ctx context.Context) (*arobj.ArObj, error)
- func (obj *Promoperiods) GetPlanID() int32
- func (obj *Promoperiods) GetPlanType() string
- func (obj *Promoperiods) GetPlans(ctx context.Context) ([]*arobj.ArObj, error)
- func (obj *Promoperiods) GetPlatform() map[string]interface{}
- func (obj *Promoperiods) GetPlatforms() uint32
- func (obj *Promoperiods) GetPrice() float64
- func (obj *Promoperiods) GetPromobunch() uint32
- func (obj *Promoperiods) GetStart() int32
- func (obj *Promoperiods) Insert(ctx context.Context) error
- func (obj *Promoperiods) InsertOrReplace(ctx context.Context) error
- func (obj *Promoperiods) IsPlatformsandroid() bool
- func (obj *Promoperiods) IsPlatformshuawei() bool
- func (obj *Promoperiods) IsPlatformsios() bool
- func (obj *Promoperiods) IsPlatformsweb() bool
- func (obj *Promoperiods) MockDelete(ctx context.Context) []byte
- func (obj *Promoperiods) MockInsert(ctx context.Context) []byte
- func (obj *Promoperiods) MockInsertOrReplace(ctx context.Context) []byte
- func (obj *Promoperiods) MockReplace(ctx context.Context) []byte
- func (obj *Promoperiods) MockSelectByCodeRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte
- func (obj *Promoperiods) MockSelectByCodesRequest(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) []byte
- func (obj *Promoperiods) MockSelectByEmailActionRequest(ctx context.Context) []byte
- func (obj *Promoperiods) MockSelectByEmailActionsRequest(ctx context.Context, keys []EmailActionIndexType) []byte
- func (obj *Promoperiods) MockSelectByEmailCodeRequest(ctx context.Context) []byte
- func (obj *Promoperiods) MockSelectByEmailCodesRequest(ctx context.Context, keys []EmailCodeIndexType) []byte
- func (obj *Promoperiods) MockSelectByEmailPartRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte
- func (obj *Promoperiods) MockSelectByEmailPartsRequest(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) []byte
- func (obj *Promoperiods) MockSelectByEmailRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte
- func (obj *Promoperiods) MockSelectByEmailsRequest(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) []byte
- func (obj *Promoperiods) MockSelectByIDRequest(ctx context.Context) []byte
- func (obj *Promoperiods) MockSelectByIDsRequest(ctx context.Context, keys []string) []byte
- func (obj *Promoperiods) MockSelectByPlanTypePriceRequest(ctx context.Context) []byte
- func (obj *Promoperiods) MockSelectByPlanTypePricesRequest(ctx context.Context, keys []PlanTypePriceIndexType) []byte
- func (obj *Promoperiods) MockSelectResponse() ([][]byte, error)
- func (obj *Promoperiods) MockUpdate(ctx context.Context) []byte
- func (obj *Promoperiods) Primary() string
- func (obj *Promoperiods) PrimaryString() string
- func (obj *Promoperiods) Replace(ctx context.Context) error
- func (obj *Promoperiods) RepoSelector(ctx context.Context) (any, error)
- func (obj *Promoperiods) SetAction(Action string) error
- func (obj *Promoperiods) SetBitPlatforms(mutArg uint32) error
- func (obj *Promoperiods) SetBitPromobunch(mutArg uint32) error
- func (obj *Promoperiods) SetCode(Code string) error
- func (obj *Promoperiods) SetEmail(Email string) error
- func (obj *Promoperiods) SetFinish(Finish *dictionary.Product) error
- func (obj *Promoperiods) SetID(ID string) error
- func (obj *Promoperiods) SetPlanID(PlanID int32) error
- func (obj *Promoperiods) SetPlanType(PlanType string) error
- func (obj *Promoperiods) SetPlatform(Platform map[string]interface{}) error
- func (obj *Promoperiods) SetPlatforms(Platforms uint32) error
- func (obj *Promoperiods) SetPlatformsandroid() error
- func (obj *Promoperiods) SetPlatformshuawei() error
- func (obj *Promoperiods) SetPlatformsios() error
- func (obj *Promoperiods) SetPlatformsweb() error
- func (obj *Promoperiods) SetPrice(Price float64) error
- func (obj *Promoperiods) SetPromobunch(Promobunch uint32) error
- func (obj *Promoperiods) SetStart(Start int32) error
- func (obj *Promoperiods) Update(ctx context.Context) error
- type PromoperiodsActionUpdateFixtureOption
- type PromoperiodsCodeUpdateFixtureOption
- type PromoperiodsEmailUpdateFixtureOption
- type PromoperiodsFT
- type PromoperiodsFinishUpdateFixtureOption
- type PromoperiodsList
- type PromoperiodsPlanIDUpdateFixtureOption
- type PromoperiodsPlanTypeUpdateFixtureOption
- type PromoperiodsPlatformUpdateFixtureOption
- type PromoperiodsPlatformsUpdateFixtureOption
- type PromoperiodsPriceUpdateFixtureOption
- type PromoperiodsPromobunchUpdateFixtureOption
- type PromoperiodsStartUpdateFixtureOption
- type PromoperiodsUpdateFT
- type PromoperiodsUpdateFixtureOptions
Constants ¶
const ( PlatformswebFlag = 1 << 0 PlatformsiosFlag = 1 << 1 PlatformsandroidFlag = 1 << 2 PlatformshuaweiFlag = 1 << 3 )
Variables ¶
This section is empty.
Functions ¶
func MarshalFinish ¶
func MarshalFinish(Finish *dictionary.Product) (any, error)
func MarshalFixtures ¶
func MarshalFixtures(objs []*Promoperiods) ([]byte, error)
func MarshalPlatform ¶
func MarshalPrice ¶
func PackKeyIndexCode ¶
func PackKeyIndexEmail ¶
func PackKeyIndexEmailAction ¶
func PackKeyIndexEmailAction(ctx context.Context, keys []EmailActionIndexType) ([][][]byte, error)
func PackKeyIndexEmailCode ¶
func PackKeyIndexEmailCode(ctx context.Context, keys []EmailCodeIndexType) ([][][]byte, error)
func PackKeyIndexEmailPart ¶
func PackKeyIndexPlanTypePrice ¶
func PackKeyIndexPlanTypePrice(ctx context.Context, keys []PlanTypePriceIndexType) ([][][]byte, error)
func SelectByCodeMockerLogger ¶
func SelectByCodeMockerLogger(keys []string, res PromoperiodsList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)
func SelectByEmailActionMockerLogger ¶
func SelectByEmailActionMockerLogger(keys []EmailActionIndexType, res PromoperiodsList) func() (activerecord.MockerLogger, error)
func SelectByEmailCodeMockerLogger ¶
func SelectByEmailCodeMockerLogger(keys []EmailCodeIndexType, res PromoperiodsList) func() (activerecord.MockerLogger, error)
func SelectByEmailMockerLogger ¶
func SelectByEmailMockerLogger(keys []string, res PromoperiodsList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)
func SelectByEmailPartMockerLogger ¶
func SelectByEmailPartMockerLogger(keys []string, res PromoperiodsList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)
func SelectByIDMockerLogger ¶
func SelectByIDMockerLogger(keys []string, res PromoperiodsList) func() (activerecord.MockerLogger, error)
func SelectByPlanTypePriceMockerLogger ¶
func SelectByPlanTypePriceMockerLogger(keys []PlanTypePriceIndexType, res PromoperiodsList) func() (activerecord.MockerLogger, error)
func SetFixtureUpdateOptions ¶
func SetFixtureUpdateOptions(obj *Promoperiods, updateOptions []PromoperiodsUpdateFixtureOptions)
func UnpackFinish ¶
func UnpackFinish(r *bytes.Reader) (ret *dictionary.Product, errRet error)
func UnpackKeyIndexCode ¶
func UnpackKeyIndexEmail ¶
func UnpackKeyIndexEmailPart ¶
func UnpackKeyIndexID ¶
func UnpackPlatform ¶
Types ¶
type EmailActionIndexType ¶
func UnpackKeyIndexEmailAction ¶
func UnpackKeyIndexEmailAction(packedKeys [][][]byte) ([]EmailActionIndexType, error)
type EmailCodeIndexType ¶
func UnpackKeyIndexEmailCode ¶
func UnpackKeyIndexEmailCode(packedKeys [][][]byte) ([]EmailCodeIndexType, error)
type PlanTypePriceIndexType ¶
func UnpackKeyIndexPlanTypePrice ¶
func UnpackKeyIndexPlanTypePrice(packedKeys [][][]byte) ([]PlanTypePriceIndexType, error)
type Promoperiods ¶
func New ¶
func New(ctx context.Context) *Promoperiods
func NewFromBox ¶
func SelectByCode ¶
func SelectByCode(ctx context.Context, key string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
func SelectByCodes ¶
func SelectByCodes(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
keysPacked := [][][]byte{} for _, key := range keys { keysField := [][]byte{} keysField = append(keysField, octopus.PackString([]byte{}, key, iproto.ModeDefault)) keysPacked = append(keysPacked, keysField) } return keysPacked, nil }
func SelectByEmail ¶
func SelectByEmail(ctx context.Context, key string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
func SelectByEmailAction ¶
func SelectByEmailAction(ctx context.Context, key EmailActionIndexType) (*Promoperiods, error)
func SelectByEmailActions ¶
func SelectByEmailActions(ctx context.Context, keys []EmailActionIndexType) ([]*Promoperiods, error)
keysPacked := [][][]byte{} for _, key := range keys { keysField := [][]byte{} keysField = append(keysField, octopus.PackString([]byte{}, key.Email, iproto.ModeDefault)) keysField = append(keysField, octopus.PackString([]byte{}, key.Action, iproto.ModeDefault)) keysPacked = append(keysPacked, keysField) } return keysPacked, nil }
func SelectByEmailCode ¶
func SelectByEmailCode(ctx context.Context, key EmailCodeIndexType) (*Promoperiods, error)
func SelectByEmailCodes ¶
func SelectByEmailCodes(ctx context.Context, keys []EmailCodeIndexType) ([]*Promoperiods, error)
keysPacked := [][][]byte{} for _, key := range keys { keysField := [][]byte{} keysField = append(keysField, octopus.PackString([]byte{}, key.Email, iproto.ModeDefault)) keysField = append(keysField, octopus.PackString([]byte{}, key.Code, iproto.ModeDefault)) keysPacked = append(keysPacked, keysField) } return keysPacked, nil }
func SelectByEmailPart ¶
func SelectByEmailPart(ctx context.Context, key string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
func SelectByEmailParts ¶
func SelectByEmailParts(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
keysPacked := [][][]byte{} for _, key := range keys { keysField := [][]byte{} keysField = append(keysField, octopus.PackString([]byte{}, key, iproto.ModeDefault)) keysPacked = append(keysPacked, keysField) } return keysPacked, nil }
func SelectByEmails ¶
func SelectByEmails(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) ([]*Promoperiods, error)
keysPacked := [][][]byte{} for _, key := range keys { keysField := [][]byte{} keysField = append(keysField, octopus.PackString([]byte{}, key, iproto.ModeDefault)) keysPacked = append(keysPacked, keysField) } return keysPacked, nil }
func SelectByID ¶
func SelectByID(ctx context.Context, key string) (*Promoperiods, error)
func SelectByIDs ¶
func SelectByIDs(ctx context.Context, keys []string) ([]*Promoperiods, error)
keysPacked := [][][]byte{} for _, key := range keys { keysField := [][]byte{} keysField = append(keysField, octopus.PackString([]byte{}, key, iproto.ModeDefault)) keysPacked = append(keysPacked, keysField) } return keysPacked, nil }
func SelectByPlanTypePrice ¶
func SelectByPlanTypePrice(ctx context.Context, key PlanTypePriceIndexType) (*Promoperiods, error)
func SelectByPlanTypePrices ¶
func SelectByPlanTypePrices(ctx context.Context, keys []PlanTypePriceIndexType) ([]*Promoperiods, error)
keysPacked := [][][]byte{} for _, key := range keys { keysField := [][]byte{} keysField = append(keysField, octopus.PackString([]byte{}, key.PlanType, iproto.ModeDefault)) skey, err := serializerJSON.PrintfMarshal("%.2f", key.Price) if err != nil { return nil, err } keysField = append(keysField, octopus.PackString([]byte{}, skey, iproto.ModeDefault)) keysPacked = append(keysPacked, keysField) } return keysPacked, nil }
func SelectByPrimary ¶
func SelectByPrimary(ctx context.Context, pk string) (*Promoperiods, error)
func TupleToStruct ¶
func UnmarshalDeleteFixtures ¶
func UnmarshalDeleteFixtures(source []byte) []*Promoperiods
func UnmarshalFixtures ¶
func UnmarshalFixtures(source []byte) []*Promoperiods
func UnmarshalInsertReplaceFixtures ¶
func UnmarshalInsertReplaceFixtures(source []byte) []*Promoperiods
func UnmarshalUpdateFixtures ¶
func UnmarshalUpdateFixtures(source []byte) []*Promoperiods
func (*Promoperiods) ClearBitPlatforms ¶
func (obj *Promoperiods) ClearBitPlatforms(mutArg uint32) error
func (*Promoperiods) ClearBitPromobunch ¶
func (obj *Promoperiods) ClearBitPromobunch(mutArg uint32) error
func (*Promoperiods) ClearPlatformsandroid ¶
func (obj *Promoperiods) ClearPlatformsandroid() error
func (*Promoperiods) ClearPlatformshuawei ¶
func (obj *Promoperiods) ClearPlatformshuawei() error
func (*Promoperiods) ClearPlatformsios ¶
func (obj *Promoperiods) ClearPlatformsios() error
func (*Promoperiods) ClearPlatformsweb ¶
func (obj *Promoperiods) ClearPlatformsweb() error
func (*Promoperiods) Equal ¶
func (obj *Promoperiods) Equal(anotherObjI any) bool
func (*Promoperiods) GetAction ¶
func (obj *Promoperiods) GetAction() string
func (*Promoperiods) GetCode ¶
func (obj *Promoperiods) GetCode() string
func (*Promoperiods) GetEmail ¶
func (obj *Promoperiods) GetEmail() string
func (*Promoperiods) GetFinish ¶
func (obj *Promoperiods) GetFinish() *dictionary.Product
func (*Promoperiods) GetID ¶
func (obj *Promoperiods) GetID() string
func (*Promoperiods) GetPlanID ¶
func (obj *Promoperiods) GetPlanID() int32
func (*Promoperiods) GetPlanType ¶
func (obj *Promoperiods) GetPlanType() string
func (*Promoperiods) GetPlatform ¶
func (obj *Promoperiods) GetPlatform() map[string]interface{}
func (*Promoperiods) GetPlatforms ¶
func (obj *Promoperiods) GetPlatforms() uint32
func (*Promoperiods) GetPrice ¶
func (obj *Promoperiods) GetPrice() float64
func (*Promoperiods) GetPromobunch ¶
func (obj *Promoperiods) GetPromobunch() uint32
func (*Promoperiods) GetStart ¶
func (obj *Promoperiods) GetStart() int32
func (*Promoperiods) InsertOrReplace ¶
func (obj *Promoperiods) InsertOrReplace(ctx context.Context) error
func (*Promoperiods) IsPlatformsandroid ¶
func (obj *Promoperiods) IsPlatformsandroid() bool
func (*Promoperiods) IsPlatformshuawei ¶
func (obj *Promoperiods) IsPlatformshuawei() bool
func (*Promoperiods) IsPlatformsios ¶
func (obj *Promoperiods) IsPlatformsios() bool
func (*Promoperiods) IsPlatformsweb ¶
func (obj *Promoperiods) IsPlatformsweb() bool
func (*Promoperiods) MockDelete ¶
func (obj *Promoperiods) MockDelete(ctx context.Context) []byte
func (*Promoperiods) MockInsert ¶
func (obj *Promoperiods) MockInsert(ctx context.Context) []byte
func (*Promoperiods) MockInsertOrReplace ¶
func (obj *Promoperiods) MockInsertOrReplace(ctx context.Context) []byte
func (*Promoperiods) MockReplace ¶
func (obj *Promoperiods) MockReplace(ctx context.Context) []byte
func (*Promoperiods) MockSelectByCodeRequest ¶
func (obj *Promoperiods) MockSelectByCodeRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte
func (*Promoperiods) MockSelectByCodesRequest ¶
func (obj *Promoperiods) MockSelectByCodesRequest(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) []byte
func (*Promoperiods) MockSelectByEmailActionRequest ¶
func (obj *Promoperiods) MockSelectByEmailActionRequest(ctx context.Context) []byte
func (*Promoperiods) MockSelectByEmailActionsRequest ¶
func (obj *Promoperiods) MockSelectByEmailActionsRequest(ctx context.Context, keys []EmailActionIndexType) []byte
func (*Promoperiods) MockSelectByEmailCodeRequest ¶
func (obj *Promoperiods) MockSelectByEmailCodeRequest(ctx context.Context) []byte
func (*Promoperiods) MockSelectByEmailCodesRequest ¶
func (obj *Promoperiods) MockSelectByEmailCodesRequest(ctx context.Context, keys []EmailCodeIndexType) []byte
func (*Promoperiods) MockSelectByEmailPartRequest ¶
func (obj *Promoperiods) MockSelectByEmailPartRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte
func (*Promoperiods) MockSelectByEmailPartsRequest ¶
func (obj *Promoperiods) MockSelectByEmailPartsRequest(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) []byte
func (*Promoperiods) MockSelectByEmailRequest ¶
func (obj *Promoperiods) MockSelectByEmailRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte
func (*Promoperiods) MockSelectByEmailsRequest ¶
func (obj *Promoperiods) MockSelectByEmailsRequest(ctx context.Context, keys []string, limiter activerecord.SelectorLimiter) []byte
func (*Promoperiods) MockSelectByIDRequest ¶
func (obj *Promoperiods) MockSelectByIDRequest(ctx context.Context) []byte
func (*Promoperiods) MockSelectByIDsRequest ¶
func (obj *Promoperiods) MockSelectByIDsRequest(ctx context.Context, keys []string) []byte
func (*Promoperiods) MockSelectByPlanTypePriceRequest ¶
func (obj *Promoperiods) MockSelectByPlanTypePriceRequest(ctx context.Context) []byte
func (*Promoperiods) MockSelectByPlanTypePricesRequest ¶
func (obj *Promoperiods) MockSelectByPlanTypePricesRequest(ctx context.Context, keys []PlanTypePriceIndexType) []byte
func (*Promoperiods) MockSelectResponse ¶
func (obj *Promoperiods) MockSelectResponse() ([][]byte, error)
func (*Promoperiods) MockUpdate ¶
func (obj *Promoperiods) MockUpdate(ctx context.Context) []byte
func (*Promoperiods) Primary ¶
func (obj *Promoperiods) Primary() string
func (*Promoperiods) PrimaryString ¶
func (obj *Promoperiods) PrimaryString() string
func (*Promoperiods) RepoSelector ¶
func (obj *Promoperiods) RepoSelector(ctx context.Context) (any, error)
func (*Promoperiods) SetAction ¶
func (obj *Promoperiods) SetAction(Action string) error
func (*Promoperiods) SetBitPlatforms ¶
func (obj *Promoperiods) SetBitPlatforms(mutArg uint32) error
func (*Promoperiods) SetBitPromobunch ¶
func (obj *Promoperiods) SetBitPromobunch(mutArg uint32) error
func (*Promoperiods) SetCode ¶
func (obj *Promoperiods) SetCode(Code string) error
func (*Promoperiods) SetEmail ¶
func (obj *Promoperiods) SetEmail(Email string) error
func (*Promoperiods) SetFinish ¶
func (obj *Promoperiods) SetFinish(Finish *dictionary.Product) error
func (*Promoperiods) SetID ¶
func (obj *Promoperiods) SetID(ID string) error
func (*Promoperiods) SetPlanID ¶
func (obj *Promoperiods) SetPlanID(PlanID int32) error
func (*Promoperiods) SetPlanType ¶
func (obj *Promoperiods) SetPlanType(PlanType string) error
func (*Promoperiods) SetPlatform ¶
func (obj *Promoperiods) SetPlatform(Platform map[string]interface{}) error
func (*Promoperiods) SetPlatforms ¶
func (obj *Promoperiods) SetPlatforms(Platforms uint32) error
func (*Promoperiods) SetPlatformsandroid ¶
func (obj *Promoperiods) SetPlatformsandroid() error
func (*Promoperiods) SetPlatformshuawei ¶
func (obj *Promoperiods) SetPlatformshuawei() error
func (*Promoperiods) SetPlatformsios ¶
func (obj *Promoperiods) SetPlatformsios() error
func (*Promoperiods) SetPlatformsweb ¶
func (obj *Promoperiods) SetPlatformsweb() error
func (*Promoperiods) SetPrice ¶
func (obj *Promoperiods) SetPrice(Price float64) error
func (*Promoperiods) SetPromobunch ¶
func (obj *Promoperiods) SetPromobunch(Promobunch uint32) error
func (*Promoperiods) SetStart ¶
func (obj *Promoperiods) SetStart(Start int32) error
type PromoperiodsActionUpdateFixtureOption ¶
type PromoperiodsActionUpdateFixtureOption struct {
Value string `yaml:"set_value"`
}
type PromoperiodsCodeUpdateFixtureOption ¶
type PromoperiodsCodeUpdateFixtureOption struct {
Value string `yaml:"set_value"`
}
type PromoperiodsEmailUpdateFixtureOption ¶
type PromoperiodsEmailUpdateFixtureOption struct {
Value string `yaml:"set_value"`
}
type PromoperiodsFT ¶
type PromoperiodsFT struct { ID string `yaml:"id" mapstructure:"id" json:"id"` Code string `yaml:"code" mapstructure:"code" json:"code"` Email string `yaml:"email" mapstructure:"email" json:"email"` Start int32 `yaml:"start" mapstructure:"start" json:"start"` Finish *dictionary.Product `yaml:"finish" mapstructure:"finish" json:"finish"` Action string `yaml:"action" mapstructure:"action" json:"action"` Platform map[string]interface{} `yaml:"platform" mapstructure:"platform" json:"platform"` Promobunch uint32 `yaml:"promobunch" mapstructure:"promobunch" json:"promobunch"` Platforms uint32 `yaml:"platforms" mapstructure:"platforms" json:"platforms"` PlanID int32 `yaml:"plan_id" mapstructure:"plan_id" json:"plan_id"` PlanType string `yaml:"plan_type" mapstructure:"plan_type" json:"plan_type"` Price float64 `yaml:"price" mapstructure:"price" json:"price"` }
func UnmarshalFixturesFromJSON ¶
func UnmarshalFixturesFromJSON(source []byte) ([]PromoperiodsFT, error)
type PromoperiodsFinishUpdateFixtureOption ¶
type PromoperiodsFinishUpdateFixtureOption struct {
Value *dictionary.Product `yaml:"set_value"`
}
type PromoperiodsList ¶
type PromoperiodsList []*Promoperiods
func (PromoperiodsList) String ¶
func (objs PromoperiodsList) String() string
type PromoperiodsPlanIDUpdateFixtureOption ¶
type PromoperiodsPlanIDUpdateFixtureOption struct {
Value int32 `yaml:"set_value"`
}
type PromoperiodsPlanTypeUpdateFixtureOption ¶
type PromoperiodsPlanTypeUpdateFixtureOption struct {
Value string `yaml:"set_value"`
}
type PromoperiodsPlatformUpdateFixtureOption ¶
type PromoperiodsPlatformUpdateFixtureOption struct {
Value map[string]interface{} `yaml:"set_value"`
}
type PromoperiodsPlatformsUpdateFixtureOption ¶
type PromoperiodsPlatformsUpdateFixtureOption struct {
Value uint32 `yaml:"set_value"`
}
type PromoperiodsPriceUpdateFixtureOption ¶
type PromoperiodsPriceUpdateFixtureOption struct {
Value float64 `yaml:"set_value"`
}
type PromoperiodsPromobunchUpdateFixtureOption ¶
type PromoperiodsPromobunchUpdateFixtureOption struct {
Value uint32 `yaml:"set_value"`
}
type PromoperiodsStartUpdateFixtureOption ¶
type PromoperiodsStartUpdateFixtureOption struct {
Value int32 `yaml:"set_value"`
}
type PromoperiodsUpdateFT ¶
type PromoperiodsUpdateFT struct { ID string `yaml:"id"` UpdateOptions []PromoperiodsUpdateFixtureOptions `yaml:"update_options"` }
type PromoperiodsUpdateFixtureOptions ¶
type PromoperiodsUpdateFixtureOptions struct { Code *PromoperiodsCodeUpdateFixtureOption `yaml:"code"` Email *PromoperiodsEmailUpdateFixtureOption `yaml:"email"` Start *PromoperiodsStartUpdateFixtureOption `yaml:"start"` Finish *PromoperiodsFinishUpdateFixtureOption `yaml:"finish"` Action *PromoperiodsActionUpdateFixtureOption `yaml:"action"` Platform *PromoperiodsPlatformUpdateFixtureOption `yaml:"platform"` Promobunch *PromoperiodsPromobunchUpdateFixtureOption `yaml:"promobunch"` Platforms *PromoperiodsPlatformsUpdateFixtureOption `yaml:"platforms"` PlanID *PromoperiodsPlanIDUpdateFixtureOption `yaml:"plan_id"` PlanType *PromoperiodsPlanTypeUpdateFixtureOption `yaml:"plan_type"` Price *PromoperiodsPriceUpdateFixtureOption `yaml:"price"` }