-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat udistrital/arka_cliente#1132: Avalúos
- Generación de controlador /avaluo
- Loading branch information
lud
committed
Mar 28, 2023
1 parent
5e2b1e5
commit 0b5c6f9
Showing
5 changed files
with
436 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package controllers | ||
|
||
import ( | ||
"github.com/astaxie/beego" | ||
) | ||
|
||
// AvaluoController operations for Avaluo | ||
type AvaluoController struct { | ||
beego.Controller | ||
} | ||
|
||
// URLMapping ... | ||
func (c *AvaluoController) URLMapping() { | ||
c.Mapping("Post", c.Post) | ||
c.Mapping("GetOne", c.GetOne) | ||
c.Mapping("GetAll", c.GetAll) | ||
c.Mapping("Put", c.Put) | ||
c.Mapping("Delete", c.Delete) | ||
} | ||
|
||
// Post ... | ||
// @Title Create | ||
// @Description create Avaluo | ||
// @Param body body models.Avaluo true "body for Avaluo content" | ||
// @Success 201 {object} models.Avaluo | ||
// @Failure 403 body is empty | ||
// @router / [post] | ||
func (c *AvaluoController) Post() { | ||
|
||
} | ||
|
||
// GetOne ... | ||
// @Title GetOne | ||
// @Description get Avaluo by id | ||
// @Param id path string true "The key for staticblock" | ||
// @Success 200 {object} models.Avaluo | ||
// @Failure 403 :id is empty | ||
// @router /:id [get] | ||
func (c *AvaluoController) GetOne() { | ||
|
||
} | ||
|
||
// GetAll ... | ||
// @Title GetAll | ||
// @Description get Avaluo | ||
// @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." | ||
// @Param fields query string false "Fields returned. e.g. col1,col2 ..." | ||
// @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." | ||
// @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." | ||
// @Param limit query string false "Limit the size of result set. Must be an integer" | ||
// @Param offset query string false "Start position of result set. Must be an integer" | ||
// @Success 200 {object} models.Avaluo | ||
// @Failure 403 | ||
// @router / [get] | ||
func (c *AvaluoController) GetAll() { | ||
|
||
} | ||
|
||
// Put ... | ||
// @Title Put | ||
// @Description update the Avaluo | ||
// @Param id path string true "The id you want to update" | ||
// @Param body body models.Avaluo true "body for Avaluo content" | ||
// @Success 200 {object} models.Avaluo | ||
// @Failure 403 :id is not int | ||
// @router /:id [put] | ||
func (c *AvaluoController) Put() { | ||
|
||
} | ||
|
||
// Delete ... | ||
// @Title Delete | ||
// @Description delete the Avaluo | ||
// @Param id path string true "The id you want to delete" | ||
// @Success 200 {string} delete success! | ||
// @Failure 403 id is empty | ||
// @router /:id [delete] | ||
func (c *AvaluoController) Delete() { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.