Documentation ¶
Index ¶
- type Customer
- type CustomerRepository
- func (this *CustomerRepository) GetCustomerByIdInCorp(corp business.ICorp, customerId int) *Customer
- func (this *CustomerRepository) GetCustomerByUserIdInCorp(corp business.ICorp, user business.IUser) *Customer
- func (this *CustomerRepository) GetCustomers(filters eel.Map, orderExprs ...string) []*Customer
- func (this *CustomerRepository) GetPagedCustomers(filters eel.Map, page *eel.PageInfo, orderExprs ...string) ([]*Customer, eel.INextPageInfo)
- func (this *CustomerRepository) GetPagedCustomersForCorp(corp business.ICorp, filters eel.Map, page *eel.PageInfo) ([]*Customer, eel.INextPageInfo)
- type EncodeCustomerService
- type FillCustomerService
- type RCustomer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customer ¶
type Customer struct { eel.EntityBase Id int UserId int CorpId int Unionid string Code string //基本信息 Name string Avatar string Sex string //其他信息 Source string // 消费记录 ConsumptionRecord *consumptionRecord }
func NewCustomerForCorp ¶
func NewCustomerFromModel ¶
func NewCustomerFromModel(ctx context.Context, model *m_customer.Customer) *Customer
type CustomerRepository ¶
type CustomerRepository struct {
eel.ServiceBase
}
func NewCustomerRepository ¶
func NewCustomerRepository(ctx context.Context) *CustomerRepository
func (*CustomerRepository) GetCustomerByIdInCorp ¶
func (this *CustomerRepository) GetCustomerByIdInCorp(corp business.ICorp, customerId int) *Customer
func (*CustomerRepository) GetCustomerByUserIdInCorp ¶
func (*CustomerRepository) GetCustomers ¶
func (this *CustomerRepository) GetCustomers(filters eel.Map, orderExprs ...string) []*Customer
func (*CustomerRepository) GetPagedCustomers ¶
func (this *CustomerRepository) GetPagedCustomers(filters eel.Map, page *eel.PageInfo, orderExprs ...string) ([]*Customer, eel.INextPageInfo)
func (*CustomerRepository) GetPagedCustomersForCorp ¶
func (this *CustomerRepository) GetPagedCustomersForCorp(corp business.ICorp, filters eel.Map, page *eel.PageInfo) ([]*Customer, eel.INextPageInfo)
type EncodeCustomerService ¶
type EncodeCustomerService struct {
eel.ServiceBase
}
func NewEncodeCustomerService ¶
func NewEncodeCustomerService(ctx context.Context) *EncodeCustomerService
func (*EncodeCustomerService) Encode ¶
func (this *EncodeCustomerService) Encode(customer *Customer) *RCustomer
func (*EncodeCustomerService) EncodeMany ¶
func (this *EncodeCustomerService) EncodeMany(customers []*Customer) []*RCustomer
type FillCustomerService ¶
type FillCustomerService struct {
eel.ServiceBase
}
func NewFillCustomerService ¶
func NewFillCustomerService(ctx context.Context) *FillCustomerService
func (*FillCustomerService) Fill ¶
func (this *FillCustomerService) Fill(customers []*Customer, option eel.FillOption)
func (*FillCustomerService) FillOne ¶
func (this *FillCustomerService) FillOne(customer *Customer, option eel.FillOption)
type RCustomer ¶
type RCustomer struct { Id int `json:"id"` UserId int `json:"user_id"` Unionid string `json:"unionid"` Code string `json:"code"` // 客户信息 Sex string `json:"sex"` Name string `json:"name"` Avatar string `json:"avatar"` Source string `json:"source"` // 消费记录 ConsumeCount int `json:"consume_count"` ConsumeMoney int `json:"consume_money"` LatestConsumeTime string `json:"latest_consume_time"` }
Click to show internal directories.
Click to hide internal directories.