Documentation ¶
Index ¶
- func NewQuery(query *ent.CitySpliderAreaPolygonQuery) queryOption
- type PolygonRepo
- func (r *PolygonRepo) Count(ctx context.Context, queries ...bizareapolygon.Query) int
- func (r *PolygonRepo) FindList(ctx context.Context, queries ...bizareapolygon.Query) ([]*bizareapolygon.Polygon, error)
- func (r *PolygonRepo) FindOne(ctx context.Context, queries ...bizareapolygon.Query) (*bizareapolygon.Polygon, error)
- func (r *PolygonRepo) Remove(ctx context.Context, queries ...bizareapolygon.Query) error
- func (r *PolygonRepo) Save(ctx context.Context, data *bizareapolygon.Polygon) (*bizareapolygon.Polygon, error)
- func (r *PolygonRepo) Truncate(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuery ¶
func NewQuery(query *ent.CitySpliderAreaPolygonQuery) queryOption
Types ¶
type PolygonRepo ¶
type PolygonRepo struct {
// contains filtered or unexported fields
}
func NewPolygonRepo ¶
func NewPolygonRepo( d *data.Data, ) *PolygonRepo
func (*PolygonRepo) Count ¶
func (r *PolygonRepo) Count(ctx context.Context, queries ...bizareapolygon.Query) int
func (*PolygonRepo) FindList ¶
func (r *PolygonRepo) FindList(ctx context.Context, queries ...bizareapolygon.Query) ([]*bizareapolygon.Polygon, error)
func (*PolygonRepo) FindOne ¶
func (r *PolygonRepo) FindOne(ctx context.Context, queries ...bizareapolygon.Query) (*bizareapolygon.Polygon, error)
func (*PolygonRepo) Remove ¶
func (r *PolygonRepo) Remove(ctx context.Context, queries ...bizareapolygon.Query) error
func (*PolygonRepo) Save ¶
func (r *PolygonRepo) Save(ctx context.Context, data *bizareapolygon.Polygon) (*bizareapolygon.Polygon, error)
Click to show internal directories.
Click to hide internal directories.