plan

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 Plan

type Plan struct {
	common.DefaultDBService
}

func (Plan) Create

func (p Plan) Create(plan *plan.Plan, options common.DBOptions) error

func (Plan) Delete

func (p Plan) Delete(id int, options common.DBOptions) error

func (Plan) Get

func (p Plan) Get(id int, options common.DBOptions) (*plan.Plan, error)

func (Plan) List

func (p Plan) List(status int, options common.DBOptions) ([]plan.Plan, error)

func (Plan) Search

func (p Plan) Search(num, size, status, RepositoryId int, path, name string, options common.DBOptions) (count int, res []plan.Plan, err error)

func (Plan) Update

func (p Plan) Update(plan *plan.Plan, options common.DBOptions) error

func (Plan) UpdateField

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

type Service

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

func GetService

func GetService() Service

Jump to

Keyboard shortcuts

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