Resources added to oc-catalog + proto search
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
// Operations about data
|
||||
// Operations about processing
|
||||
type ProcessingController struct {
|
||||
beego.Controller
|
||||
}
|
||||
@@ -48,6 +48,17 @@ func (o *ProcessingController) GetAll() {
|
||||
o.ServeJSON()
|
||||
}
|
||||
|
||||
// @Title Get
|
||||
// @Description find processing by key word
|
||||
// @Param search path string true "the search you want to get"
|
||||
// @Success 200 {processing} models.processing
|
||||
// @router /:search [get]
|
||||
func (o *ProcessingController) Search() {
|
||||
search := o.Ctx.Input.Param(":search")
|
||||
o.Data["json"] = oclib.Search(search, oclib.LibDataEnum(oclib.PROCESSING_RESOURCE))
|
||||
o.ServeJSON()
|
||||
}
|
||||
|
||||
// @Title Get
|
||||
// @Description find processing by id
|
||||
// @Param id path string true "the id you want to get"
|
||||
|
||||
Reference in New Issue
Block a user