Documentation ¶
Index ¶
- func NewQuery(query *ent.AreaQuery) queryOption
- type AreaRepo
- func (r *AreaRepo) Count(ctx context.Context, options ...bizarea.Query) int
- func (r *AreaRepo) FindList(ctx context.Context, options ...bizarea.Query) (list []*bizarea.Area, err error)
- func (r *AreaRepo) FindOne(ctx context.Context, options ...bizarea.Query) (*bizarea.Area, error)
- func (r *AreaRepo) Remove(ctx context.Context, options ...bizarea.Query) error
- func (r *AreaRepo) ReplaceParentListPrefix(ctx context.Context, oldPrefix, newPrefix string) (int, error)
- func (r *AreaRepo) Save(ctx context.Context, data *bizarea.Area) (*bizarea.Area, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AreaRepo ¶
type AreaRepo struct {
// contains filtered or unexported fields
}
func NewAreaRepo ¶
func (*AreaRepo) FindList ¶
func (r *AreaRepo) FindList(ctx context.Context, options ...bizarea.Query) (list []*bizarea.Area, err error)
FindList 查找数据
func (*AreaRepo) ReplaceParentListPrefix ¶
Click to show internal directories.
Click to hide internal directories.