Documentation ¶
Index ¶
- Constants
- type MAPI
- type MAPIParams
- type MFieldType
- type MProject
- func (p *MProject) Add(pt *domain.Project) error
- func (p *MProject) Get(params map[string]interface{}) (*domain.Project, error)
- func (p *MProject) GetList(params map[string]interface{}, offset, limit int) ([]domain.Project, error)
- func (p *MProject) Update(id int, params map[string]interface{}) error
- type MProjectStatus
- type RepoAPI
- type RepoAPIParams
- type RepoFieldType
- type RepoProject
- type RepoProjectStatus
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 MAPIParams ¶
MAPI 操作的类
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 ¶
MFieldType 操作的类
type MProject ¶
MProject 操作的类
type MProjectStatus ¶
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 用户函数库
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 用户函数库
type RepoFieldType ¶
RepoFieldType 用户函数库
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 用户函数库
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 获取操作对象
Source Files ¶
Click to show internal directories.
Click to hide internal directories.