task

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	common.DBService
	Create(task *task.Task, options common.DBOptions) error
	Search(num, size, status, RepositoryId, planId int, path, name string, options common.DBOptions) (int, []task.Task, error)
	List(num, size int, options common.DBOptions) (int, []task.Task, error)
	Get(id int, options common.DBOptions) (*task.Task, error)
	Update(task *task.Task, options common.DBOptions) error
	UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error
}

func GetService

func GetService() Service

type Task

type Task struct {
	common.DefaultDBService
}

func (Task) Create

func (t Task) Create(task *task.Task, options common.DBOptions) error

func (Task) Get

func (t Task) Get(id int, options common.DBOptions) (*task.Task, error)

func (Task) List

func (t Task) List(num, size int, options common.DBOptions) (total int, res []task.Task, err error)

func (Task) Search

func (t Task) Search(num, size, status, RepositoryId, planId int, path, name string, options common.DBOptions) (total int, res []task.Task, err error)

func (Task) Update

func (t Task) Update(task *task.Task, options common.DBOptions) error

func (Task) UpdateField

func (t Task) UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error

Jump to

Keyboard shortcuts

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