Documentation ¶
Index ¶
- Constants
- func ToConvertRegionID(s string) string
- type Area
- type AreaRepo
- type AreaUsecase
- func (a *AreaUsecase) Create(ctx context.Context, data *Area) error
- func (a *AreaUsecase) FindOne(ctx context.Context, id int) (*Area, error)
- func (a *AreaUsecase) FindOneWithInstance(ctx context.Context, queries ...Query) (*Area, error)
- func (a *AreaUsecase) List(ctx context.Context) ([]*Area, error)
- func (a *AreaUsecase) Remove(ctx context.Context) error
- func (a *AreaUsecase) Save(ctx context.Context, data *Area) (*Area, error)
- func (a *AreaUsecase) Update(ctx context.Context, data *Area) error
- type Inquirer
- type OrderType
- type Query
Constants ¶
View Source
const (
RegionIDLength = 10
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AreaRepo ¶
type AreaRepo interface { Count(ctx context.Context, options ...Query) int FindList(ctx context.Context, options ...Query) ([]*Area, error) FindOne(ctx context.Context, options ...Query) (*Area, error) Save(ctx context.Context, data *Area) (*Area, error) Remove(ctx context.Context, options ...Query) error }
type AreaUsecase ¶
type AreaUsecase struct {
// contains filtered or unexported fields
}
func NewAreaUsecase ¶
func NewAreaUsecase(repo AreaRepo) *AreaUsecase
func (*AreaUsecase) FindOneWithInstance ¶
Click to show internal directories.
Click to hide internal directories.