URL link breaks.

This commit is contained in:
Eric-Guo
2025-08-06 14:50:54 +08:00
parent 686da32dc8
commit 1dc2374c24
6 changed files with 9 additions and 9 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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}}"