This commit is contained in:
31
modules/config/service/spt.go
Normal file
31
modules/config/service/spt.go
Normal 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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user