workspace latest

This commit is contained in:
mr
2024-08-08 08:38:40 +02:00
parent 60c25b1352
commit cdc9e130aa
8 changed files with 79 additions and 2 deletions

View File

@@ -12,6 +12,18 @@ type WorkspaceController struct {
beego.Controller
}
// @Title Search
// @Description search workspace
// @Param search path string true "the word search you want to get"
// @Success 200 {workspace} models.workspace
// @router /search/:search [get]
func (o *WorkspaceController) Search() {
// store and return Id or post with UUID
search := o.Ctx.Input.Param(":search")
o.Data["json"] = oclib.Search(nil, search, oclib.LibDataEnum(oclib.WORKSPACE))
o.ServeJSON()
}
// @Title Update
// @Description create workspaces
// @Param id path string true "the workspace id you want to get"