Documentation ¶
Index ¶
- func Delete(c *znet.Context, store *model.Store, filter model.Filter, ...) (any, error)
- func DeleteById(c *znet.Context, store *model.Store, id string, ...) (any, error)
- func Find(c *znet.Context, store *model.Store, filter model.Filter, ...) (ztype.Maps, error)
- func FindById(c *znet.Context, store *model.Store, id string, fn func(o *model.CondOptions)) (ztype.Map, error)
- func HanderPageRelation(c *znet.Context, oper *model.Store, filter model.Filter, ...) (*model.PageData, error)
- func HanderPageRelation2(data *model.PageData, relations map[string]Relation) (*model.PageData, error)
- func HanderUpload(c *znet.Context, subDirName string, opt ...func(o *common.UploadOption)) ([]common.UploadResult, error)
- func Insert(c *znet.Context, store *model.Store, ...) (ztype.Map, error)
- func InsertMany(c *znet.Context, store *model.Store, ...) (ztype.Map, error)
- func Page(c *znet.Context, store *model.Store, filter model.Filter, ...) (*model.PageData, error)
- func UpdateById(c *znet.Context, store *model.Store, id string, ...) (any, error)
- type Module
- type Options
- type Relation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete( c *znet.Context, store *model.Store, filter model.Filter, handler func(old ztype.Map) error, ) (any, error)
Delete 删除多条数据
func DeleteById ¶
func DeleteById( c *znet.Context, store *model.Store, id string, handler func(old ztype.Map) error, ) (any, error)
DeleteById 删除一条数据
func Find ¶
func Find( c *znet.Context, store *model.Store, filter model.Filter, fn func(o *model.CondOptions), ) (ztype.Maps, error)
Find 获取多条数据
func FindById ¶
func FindById( c *znet.Context, store *model.Store, id string, fn func(o *model.CondOptions), ) (ztype.Map, error)
FindById 获取一条数据
func HanderPageRelation ¶
func HanderPageRelation2 ¶
func HanderUpload ¶
func HanderUpload(c *znet.Context, subDirName string, opt ...func(o *common.UploadOption)) ([]common.UploadResult, error)
func Insert ¶
func Insert( c *znet.Context, store *model.Store, fn func(data ztype.Map) (ztype.Map, error), o ...func(io *model.InsertOptions), ) (ztype.Map, error)
Insert 添加数据
func InsertMany ¶
func InsertMany( c *znet.Context, store *model.Store, fn func(i int, data ztype.Map) (ztype.Map, error), o ...func(io *model.InsertOptions), ) (ztype.Map, error)
InsertMany 添加多条数据
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (Module) Controller ¶
func (m Module) Controller() []service.Controller
Click to show internal directories.
Click to hide internal directories.