models

package
v0.0.0-...-eb19f60 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelProjectName       = "api-manager::model::project"
	ModelProjectStatusName = "api-manager::model::project_status"
	ModelAPIName           = "api-manager::model::api"
	ModelAPIParamsName     = "api-manager::model::api_params"
	ModelFieldTypeName     = "api-manager::model::field_type"
)

models

Variables

This section is empty.

Functions

This section is empty.

Types

type MAPI

type MAPI struct {
	tgorm.TGorm
	// contains filtered or unexported fields
}

MAPI 操作的类

func (*MAPI) Add

func (p *MAPI) Add(api *domain.API) error

AddProject 增加

func (*MAPI) Get

func (p *MAPI) Get(params map[string]interface{}) (*domain.API, error)

GetProject 通过id获取信息

func (*MAPI) GetList

func (p *MAPI) GetList(params map[string]interface{}, offset, limit int) ([]domain.API, error)

func (*MAPI) Update

func (p *MAPI) Update(api *domain.API, params map[string]interface{}) error

type MAPIParams

type MAPIParams struct {
	tgorm.TGorm
	// contains filtered or unexported fields
}

MAPI 操作的类

func (*MAPIParams) Add

func (p *MAPIParams) Add(api *domain.APIParameters) error

AddProject 增加

func (*MAPIParams) Delete

func (p *MAPIParams) Delete(id int64) error

GetProject 通过id获取信息

func (*MAPIParams) Get

func (p *MAPIParams) Get(params map[string]interface{}) (*domain.APIParameters, error)

GetProject 通过id获取信息

func (*MAPIParams) GetList

func (p *MAPIParams) GetList(params map[string]interface{}) ([]domain.APIParameters, error)

type MFieldType

type MFieldType struct {
	tgorm.TGorm
	FieldType domain.FieldType
}

MFieldType 操作的类

func (*MFieldType) GetList

func (p *MFieldType) GetList(params map[string]interface{}) ([]domain.FieldType, error)

GetProject 通过id获取信息

type MProject

type MProject struct {
	tgorm.TGorm
	// contains filtered or unexported fields
}

MProject 操作的类

func (*MProject) Add

func (p *MProject) Add(pt *domain.Project) error

AddProject 增加

func (*MProject) Get

func (p *MProject) Get(params map[string]interface{}) (*domain.Project, error)

GetProject 通过id获取信息

func (*MProject) GetList

func (p *MProject) GetList(params map[string]interface{}, offset, limit int) ([]domain.Project, error)

GetProject 通过id获取信息

func (*MProject) Update

func (p *MProject) Update(id int, params map[string]interface{}) error

type MProjectStatus

type MProjectStatus struct {
	tgorm.TGorm
	// contains filtered or unexported fields
}

MProjectStatus 操作的类

func (*MProjectStatus) GetList

func (p *MProjectStatus) GetList(params map[string]interface{}) ([]domain.ProjectStatus, error)

GetProject 通过id获取信息

type RepoAPI

type RepoAPI interface {
	Add(*domain.API) error
	Get(params map[string]interface{}) (*domain.API, error)
	Update(api *domain.API, params map[string]interface{}) error
	GetList(params map[string]interface{}, page, number int) ([]domain.API, error)
}

RepoAPI 用户函数库

func NewMAPI

func NewMAPI(dbs map[string]*gorm.DB) RepoAPI

NewMAPI 获取操作对象

type RepoAPIParams

type RepoAPIParams interface {
	Add(*domain.APIParameters) error
	Get(params map[string]interface{}) (*domain.APIParameters, error)
	Delete(id int64) error
	GetList(params map[string]interface{}) ([]domain.APIParameters, error)
}

RepoAPI 用户函数库

func NewMAPIParams

func NewMAPIParams(dbs map[string]*gorm.DB) RepoAPIParams

NewMAPIParams 获取操作对象

type RepoFieldType

type RepoFieldType interface {
	GetList(params map[string]interface{}) ([]domain.FieldType, error)
}

RepoFieldType 用户函数库

func NewMFieldType

func NewMFieldType(dbs map[string]*gorm.DB) RepoFieldType

NewMFieldType 获取操作对象

type RepoProject

type RepoProject interface {
	Add(*domain.Project) error
	Get(params map[string]interface{}) (*domain.Project, error)
	GetList(params map[string]interface{}, offset, limit int) ([]domain.Project, error)
	Update(id int, params map[string]interface{}) error
}

RepoProject 用户函数库

func NewMProject

func NewMProject(dbs map[string]*gorm.DB) RepoProject

NewMProject 获取操作对象

type RepoProjectStatus

type RepoProjectStatus interface {
	GetList(params map[string]interface{}) ([]domain.ProjectStatus, error)
}

RepoProjectStatus 用户函数库

func NewMProjectStatus

func NewMProjectStatus(dbs map[string]*gorm.DB) RepoProjectStatus

NewMProjectStatus 获取操作对象

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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