Documentation ¶
Index ¶
- type EncodeLimitZoneService
- type FillLimitZoneService
- type LimitProvince
- type LimitZone
- type LimitZoneRepository
- func (this *LimitZoneRepository) GetLimitZone(id int) *LimitZone
- func (this *LimitZoneRepository) GetLimitZoneInCorp(corp business.ICorp, id int) *LimitZone
- func (this *LimitZoneRepository) GetLimitZones(filters eel.Map, orderExprs ...string) []*LimitZone
- func (this *LimitZoneRepository) GetLimitZonesForCorp(corp business.ICorp, filters eel.Map) []*LimitZone
- func (this *LimitZoneRepository) GetPagedLimitZones(filters eel.Map, page *eel.PageInfo, orderExprs ...string) ([]*LimitZone, eel.INextPageInfo)
- type RLimitZone
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 LimitZone ¶
type LimitZone struct { eel.EntityBase Id int CorpId int Name string Provinces []*LimitProvince CreatedAt time.Time }
func CreateLimitZone ¶
func NewLimitZoneFromModel ¶
根据model构建对象
func (*LimitZone) UpdateAreas ¶
func (*LimitZone) UpdateName ¶
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"` }
Click to show internal directories.
Click to hide internal directories.