增加社区列表接口,任务相关接口修改
This commit is contained in:
26
internal/job/pledge/pledge.go
Normal file
26
internal/job/pledge/pledge.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package pledge
|
||||
|
||||
import (
|
||||
"context"
|
||||
"nova_task/internal/svc"
|
||||
)
|
||||
|
||||
type Pledge struct {
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
}
|
||||
|
||||
func NewPledge(ctx context.Context, svcCtx *svc.ServiceContext) *Pledge {
|
||||
return &Pledge{
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (p *Pledge) Spec() string {
|
||||
return "@every 30m"
|
||||
}
|
||||
|
||||
func (p *Pledge) Run() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user