1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 15:10:49 +00:00

added doc for GetAll template

This commit is contained in:
ZhengYang 2014-08-05 14:53:27 +08:00
parent 7fa01c437c
commit 932e73a9a2

View File

@ -754,7 +754,12 @@ func (this *{{ctrlName}}Controller) GetOne() {
// @Title Get All
// @Description get {{ctrlName}}
// @Param id path string true "get all records matches certain condition"
// @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.{{ctrlName}}
// @Failure 403
// @router / [get]