service

package
v1.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	JobModel *model.Job
}

Job 定时任务服务

func NewJob

func NewJob() *Job

NewJob Job实例

func (*Job) BatchDelete

func (s *Job) BatchDelete(ctx context.Context, id string) error

BatchDelete 批量删除

func (*Job) Create

func (s *Job) Create(ctx context.Context, item model.Job) error

Create 创建数据

func (*Job) Delete

func (s *Job) Delete(ctx context.Context, id int) error

Delete 删除数据

func (*Job) Get

func (s *Job) Get(ctx context.Context, id int) (*model.Job, error)

Get 查询指定数据

func (*Job) Query

func (s *Job) Query(ctx context.Context, dataScope string, params param.JobParam) (*pagination.Result, error)

Query 查询数据

func (*Job) Remove

func (s *Job) Remove(ctx context.Context, id int) error

Remove 移除任务

func (*Job) Start

func (s *Job) Start(ctx context.Context, id int) error

Start 启动任务

func (*Job) Update

func (s *Job) Update(ctx context.Context, item model.Job) error

Update 更新数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL