Documentation ¶
Index ¶
- Variables
- type Merchant
- func (m *Merchant) CacheMerchantInfo(ctx context.Context, merchant *model.Merchant) error
- func (m *Merchant) CreateMerchant(merchant *model.Merchant) error
- func (m *Merchant) GetMerchantById(id int64) (merchant *model.Merchant, err error)
- func (m *Merchant) GetMerchantByName(name string) (merchant *model.Merchant, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMerchantNotFound = errors.New("no such user") ErrMerchantExist = errors.New("user already exist") )
Functions ¶
This section is empty.
Types ¶
type Merchant ¶
type Merchant struct {
// contains filtered or unexported fields
}
func NewMerchant ¶
func (*Merchant) CacheMerchantInfo ¶
func (*Merchant) GetMerchantById ¶
Click to show internal directories.
Click to hide internal directories.