limit_zone

package
v0.0.0-...-2cd4ea5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodeLimitZoneService

type EncodeLimitZoneService struct {
	eel.ServiceBase
	sync.RWMutex
}

func NewEncodeLimitZoneService

func NewEncodeLimitZoneService(ctx context.Context) *EncodeLimitZoneService

func (*EncodeLimitZoneService) Encode

func (this *EncodeLimitZoneService) Encode(limitZone *LimitZone) *RLimitZone

Encode 对单个实体对象进行编码

func (*EncodeLimitZoneService) EncodeMany

func (this *EncodeLimitZoneService) EncodeMany(limitZones []*LimitZone) []*RLimitZone

EncodeMany 对实体对象进行批量编码

type FillLimitZoneService

type FillLimitZoneService struct {
	eel.ServiceBase
}

func NewFillLimitZoneService

func NewFillLimitZoneService(ctx context.Context) *FillLimitZoneService

func (*FillLimitZoneService) Fill

func (this *FillLimitZoneService) Fill(limigZones []*LimitZone, option eel.FillOption)

type LimitProvince

type LimitProvince struct {
	Id              int          `json:"id"`
	Name            string       `json:"name"`
	IsSelectAllCity bool         `json:"is_select_all_city"`
	Zone            string       `json:"zone"`
	Cities          []*limitCity `json:"cities"`
}

type LimitZone

type LimitZone struct {
	eel.EntityBase
	Id        int
	CorpId    int
	Name      string
	Provinces []*LimitProvince
	CreatedAt time.Time
}

func CreateLimitZone

func CreateLimitZone(ctx context.Context, corp business.ICorp, name string) *LimitZone

func NewLimitZoneFromModel

func NewLimitZoneFromModel(ctx context.Context, model *m_mall.LimitZone) *LimitZone

根据model构建对象

func (*LimitZone) Delete

func (this *LimitZone) Delete() error

func (*LimitZone) UpdateAreas

func (this *LimitZone) UpdateAreas(strAreas string) error

func (*LimitZone) UpdateName

func (this *LimitZone) UpdateName(name string)

type LimitZoneRepository

type LimitZoneRepository struct {
	eel.RepositoryBase
}

func NewLimitZoneRepository

func NewLimitZoneRepository(ctx context.Context) *LimitZoneRepository

func (*LimitZoneRepository) GetLimitZone

func (this *LimitZoneRepository) GetLimitZone(id int) *LimitZone

GetLimitZone 根据id和corp获得LimitZone对象

func (*LimitZoneRepository) GetLimitZoneInCorp

func (this *LimitZoneRepository) GetLimitZoneInCorp(corp business.ICorp, id int) *LimitZone

GetLimitZoneInCorp 根据id和corp获得LimitZone对象

func (*LimitZoneRepository) GetLimitZones

func (this *LimitZoneRepository) GetLimitZones(filters eel.Map, orderExprs ...string) []*LimitZone

func (*LimitZoneRepository) GetLimitZonesForCorp

func (this *LimitZoneRepository) GetLimitZonesForCorp(corp business.ICorp, filters eel.Map) []*LimitZone

GetAllLimitZonesForCorp 获得所有LimitZone对象集合

func (*LimitZoneRepository) GetPagedLimitZones

func (this *LimitZoneRepository) GetPagedLimitZones(filters eel.Map, page *eel.PageInfo, orderExprs ...string) ([]*LimitZone, eel.INextPageInfo)

type RLimitZone

type RLimitZone struct {
	Id        int              `json:"id"`
	CorpId    int              `json:"corp_id"`
	Name      string           `json:"name"`
	Provinces []*LimitProvince `json:"provinces"`
	CreatedAt string           `json:"created_at"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL