1
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
昔念
2026-04-18 15:30:00 +08:00
parent 7844c5b76b
commit 823eef00ac
5 changed files with 231 additions and 7 deletions

View File

@@ -0,0 +1,31 @@
package service
import (
"blazing/cool"
"blazing/modules/config/model"
)
type SptService struct {
*cool.Service
}
func NewSptService() *SptService {
return &SptService{
&cool.Service{
Model: model.NewSptConfig(),
ListQueryOp: &cool.QueryOp{
FieldEQ: []string{"is_enable"},
AddOrderby: map[string]string{
"task_id": "asc",
},
},
PageQueryOp: &cool.QueryOp{
FieldEQ: []string{"is_enable", "task_id"},
KeyWordField: []string{"title", "description", "remark"},
AddOrderby: map[string]string{
"task_id": "asc",
},
},
},
}
}