Files
bl/modules/config/service/collect_plan.go
昔念 0ae65cee45
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
1
2026-04-24 17:22:25 +08:00

37 lines
744 B
Go

package service
import (
"blazing/cool"
"blazing/modules/config/model"
"github.com/gogf/gf/v2/frame/g"
)
type CollectPlanService struct {
*cool.Service
}
func NewCollectPlanService() *CollectPlanService {
return &CollectPlanService{
&cool.Service{
Model: model.NewCollectPlanConfig(),
ListQueryOp: &cool.QueryOp{
FieldEQ: []string{"is_enable", "id"},
AddOrderby: map[string]string{
"id": "asc",
},
},
PageQueryOp: &cool.QueryOp{
FieldEQ: []string{"is_enable", "id"},
KeyWordField: []string{"title", "description", "remark"},
AddOrderby: map[string]string{
"id": "asc",
},
ModifyResult: func(ctx g.Ctx, data interface{}) interface{} {
return data
},
},
},
}
}