Documentation
¶
Index ¶
- func Create(ctx server.Context)
- func CreateProject(tx persistence.TxContext, code, name string) (*model.Project, error)
- func Delete(ctx server.Context)
- func DeleteProject(tx persistence.TxContext, code string) error
- func Get(ctx server.Context)
- func GetProjectByCode(tx persistence.TxContext, code string) (*model.Project, error)
- func GetProjectCode(ctx server.Context)
- func GetProjectList(tx persistence.TxContext, page, pageSize int, code, name string) ([]model.Project, int64, error)
- func List(ctx server.Context)
- func Router(router server.Router)
- func Update(ctx server.Context)
- func UpdateProject(tx persistence.TxContext, code string, newName, newCode string) (*model.Project, error)
- type ProjectListResp
- type ProjectReq
- type ProjectResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProject ¶
CreateProject 创建项目服务
func DeleteProject ¶
func DeleteProject(tx persistence.TxContext, code string) error
DeleteProject 删除项目服务
func GetProjectByCode ¶
GetProjectByCode 根据code获取项目详情
func GetProjectList ¶
func GetProjectList(tx persistence.TxContext, page, pageSize int, code, name string) ([]model.Project, int64, error)
GetProjectList 获取项目列表服务
func UpdateProject ¶
func UpdateProject(tx persistence.TxContext, code string, newName, newCode string) (*model.Project, error)
UpdateProject 更新项目服务
Types ¶
type ProjectListResp ¶
type ProjectListResp struct {
Total int `json:"total"`
Page int `json:"page"`
PageSize int `json:"pageSize"`
List []ProjectResp `json:"list"`
}
ProjectListResp 项目列表响应体
type ProjectReq ¶
ProjectReq 创建/更新项目请求体
Click to show internal directories.
Click to hide internal directories.