Documentation ¶
Index ¶
- type Service
- type Task
- func (t Task) Create(task *task.Task, options common.DBOptions) error
- func (t Task) Get(id int, options common.DBOptions) (*task.Task, error)
- func (t Task) List(num, size int, options common.DBOptions) (total int, res []task.Task, err error)
- func (t Task) Search(num, size, status, RepositoryId, planId int, path, name string, ...) (total int, res []task.Task, err error)
- func (t Task) Update(task *task.Task, options common.DBOptions) error
- func (t Task) UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error
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
Click to show internal directories.
Click to hide internal directories.