Documentation ¶
Index ¶
- type Dao
- type SampleDao
- func (d *SampleDao) Close()
- func (d *SampleDao) ConvertDuplicateKeyError(errCode pbBasev1.ERR_CODE, err error) (ne error)
- func (d *SampleDao) ConvertNotFoundError(errCode pbBasev1.ERR_CODE, err error) (ne error)
- func (d *SampleDao) CreateUser(ctx context.Context, user *model.User) (err error)
- func (d *SampleDao) IsDuplicateKey(err error) bool
- func (d *SampleDao) IsNotFoundError(err error) bool
- func (d *SampleDao) MockNotFoundError() error
- func (d *SampleDao) QueryUser(ctx context.Context, cond *model.User) (user *model.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type SampleDao ¶
type SampleDao struct {
// contains filtered or unexported fields
}
func NewInstance ¶
NewInstance 返回实例
func (*SampleDao) ConvertDuplicateKeyError ¶
func (*SampleDao) ConvertNotFoundError ¶
func (*SampleDao) CreateUser ¶
func (*SampleDao) IsDuplicateKey ¶
func (*SampleDao) IsNotFoundError ¶
func (*SampleDao) MockNotFoundError ¶
Click to show internal directories.
Click to hide internal directories.