32 lines
589 B
Go
32 lines
589 B
Go
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",
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|