mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-09-26 20:51:14 +08:00
URL link breaks.
This commit is contained in:
@@ -176,7 +176,7 @@ func (d *userExampleDao) GetByID(ctx context.Context, id uint64) (*model.UserExa
|
||||
}
|
||||
|
||||
// GetByColumns get a paginated list of userExamples by custom conditions.
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html
|
||||
func (d *userExampleDao) GetByColumns(ctx context.Context, params *query.Params) ([]*model.UserExample, int64, error) {
|
||||
queryStr, args, err := params.ConvertToGormConditions(query.WithWhitelistNames(model.UserExampleColumnNames))
|
||||
if err != nil {
|
||||
|
@@ -182,7 +182,7 @@ func (d *userExampleDao) GetByID(ctx context.Context, id uint64) (*model.UserExa
|
||||
}
|
||||
|
||||
// GetByColumns get a paginated list of userExamples by custom conditions.
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html
|
||||
func (d *userExampleDao) GetByColumns(ctx context.Context, params *query.Params) ([]*model.UserExample, int64, error) {
|
||||
queryStr, args, err := params.ConvertToGormConditions(query.WithWhitelistNames(model.UserExampleColumnNames))
|
||||
if err != nil {
|
||||
@@ -226,7 +226,7 @@ func (d *userExampleDao) DeleteByIDs(ctx context.Context, ids []uint64) error {
|
||||
}
|
||||
|
||||
// GetByCondition get a userExample by custom condition
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html#_2-condition-parameters-optional
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html#_2-condition-parameters-optional
|
||||
func (d *userExampleDao) GetByCondition(ctx context.Context, c *query.Conditions) (*model.UserExample, error) {
|
||||
queryStr, args, err := c.ConvertToGorm(query.WithWhitelistNames(model.UserExampleColumnNames))
|
||||
if err != nil {
|
||||
|
@@ -188,7 +188,7 @@ func (d *{{.TableNameCamelFCL}}Dao) GetBy{{.ColumnNameCamel}}(ctx context.Contex
|
||||
}
|
||||
|
||||
// GetByColumns get a paginated list of {{.TableNamePluralCamelFCL}} by custom conditions.
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html
|
||||
func (d *{{.TableNameCamelFCL}}Dao) GetByColumns(ctx context.Context, params *query.Params) ([]*model.{{.TableNameCamel}}, int64, error) {
|
||||
if params.Sort == "" {
|
||||
params.Sort = "-{{.ColumnName}}"
|
||||
@@ -235,7 +235,7 @@ func (d *{{.TableNameCamelFCL}}Dao) DeleteBy{{.ColumnNamePluralCamel}}(ctx conte
|
||||
}
|
||||
|
||||
// GetByCondition get a {{.TableNameCamelFCL}} by custom condition
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html#_2-condition-parameters-optional
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html#_2-condition-parameters-optional
|
||||
func (d *{{.TableNameCamelFCL}}Dao) GetByCondition(ctx context.Context, c *query.Conditions) (*model.{{.TableNameCamel}}, error) {
|
||||
queryStr, args, err := c.ConvertToGorm(query.WithWhitelistNames(model.{{.TableNameCamel}}ColumnNames))
|
||||
if err != nil {
|
||||
|
@@ -194,7 +194,7 @@ func (d *userExampleDao) GetByID(ctx context.Context, id string) (*model.UserExa
|
||||
}
|
||||
|
||||
// GetByColumns get a paginated list of userExamples by custom conditions.
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html
|
||||
func (d *userExampleDao) GetByColumns(ctx context.Context, params *query.Params) ([]*model.UserExample, int64, error) {
|
||||
filter, err := params.ConvertToMongoFilter(query.WithWhitelistNames(model.UserExampleColumnNames))
|
||||
if err != nil {
|
||||
|
@@ -199,7 +199,7 @@ func (d *userExampleDao) GetByID(ctx context.Context, id string) (*model.UserExa
|
||||
}
|
||||
|
||||
// GetByColumns get a paginated list of userExamples by custom conditions.
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html
|
||||
func (d *userExampleDao) GetByColumns(ctx context.Context, params *query.Params) ([]*model.UserExample, int64, error) {
|
||||
filter, err := params.ConvertToMongoFilter(query.WithWhitelistNames(model.UserExampleColumnNames))
|
||||
if err != nil {
|
||||
@@ -252,7 +252,7 @@ func (d *userExampleDao) DeleteByIDs(ctx context.Context, ids []string) error {
|
||||
}
|
||||
|
||||
// GetByCondition get a userExample by custom condition.
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html#_2-condition-parameters-optional
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html#_2-condition-parameters-optional
|
||||
func (d *userExampleDao) GetByCondition(ctx context.Context, c *query.Conditions) (*model.UserExample, error) {
|
||||
filter, err := c.ConvertToMongo(query.WithWhitelistNames(model.UserExampleColumnNames))
|
||||
if err != nil {
|
||||
|
@@ -182,7 +182,7 @@ func (d *{{.TableNameCamelFCL}}Dao) GetBy{{.ColumnNameCamel}}(ctx context.Contex
|
||||
}
|
||||
|
||||
// GetByColumns get a paginated list of {{.TableNamePluralCamelFCL}} by custom conditions.
|
||||
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
|
||||
// For more details, please refer to https://go-sponge.com/component/data/custom-page-query.html
|
||||
func (d *{{.TableNameCamelFCL}}Dao) GetByColumns(ctx context.Context, params *query.Params) ([]*model.{{.TableNameCamel}}, int64, error) {
|
||||
if params.Sort == "" {
|
||||
params.Sort = "-{{.ColumnName}}"
|
||||
|
Reference in New Issue
Block a user