Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category interface { Save(category CategoryEntity) (CategoryId, error) FindAll() ([]CategoryEntity, error) Delete(id CategoryId) error }
type CategoryEntity ¶
type CategoryId ¶
type CategoryId string
func (CategoryId) String ¶
func (c CategoryId) String() string
type CategoryRepo ¶
type CategoryRepo struct {
// contains filtered or unexported fields
}
func NewCategory ¶
func NewCategory(db database.DbConnection) CategoryRepo
func (CategoryRepo) Delete ¶
func (ca CategoryRepo) Delete(id CategoryId) error
func (CategoryRepo) FindAll ¶
func (ca CategoryRepo) FindAll() ([]CategoryEntity, error)
func (CategoryRepo) Save ¶
func (ca CategoryRepo) Save(category CategoryEntity) (CategoryId, error)
type Rider ¶
type Rider interface { Save(rider RiderEntity) (string, error) FindOne(id string) (RiderEntity, error) Delete(id string) error FindAll(page server.PageRequest) ([]RiderEntity, error) Count() (int, error) }
type RiderEntity ¶
type RiderEntity struct { Id string `json:"id"` Name string `json:"name"` Age int `json:"age"` Gender string `json:"gender"` City string `json:"city"` Email string `json:"email"` PaidSubscription bool `json:"paidSubscription"` Sponsors string `json:"sponsors"` CategoryId string `json:"categoryId"` CreateAt time.Time `json:"createAt"` UpdateAt *time.Time `json:"updateAt,omitempty"` }
type RiderRepo ¶
type RiderRepo struct {
// contains filtered or unexported fields
}
func NewRiderRepository ¶
func NewRiderRepository(d database.DbConnection) RiderRepo
func (RiderRepo) FindAll ¶
func (r RiderRepo) FindAll(page server.PageRequest) ([]RiderEntity, error)
type Score ¶
type Score interface {
Save(score ScoreEntity) (string, error)
}
type ScoreEntity ¶
type ScoreRepo ¶
type ScoreRepo struct {
// contains filtered or unexported fields
}
func NewScoreRepository ¶
func NewScoreRepository(d database.DbConnection) ScoreRepo
Click to show internal directories.
Click to hide internal directories.