示例#1
0
// @Title Get
// @Description get all Users
// @Success 200 {object} models.User
// @router / [get]
func (u *BookmarkcollectionController) GetAll() {
	users := models.GetAllUsers()
	u.Data["json"] = users
	u.ServeJson()
}
示例#2
0
文件: user.go 项目: wadee/go_proj
// @Title Get
// @Description get all Users
// @Success 200 {object} models.User
// @router / [get]
func (u *UserController) GetAll() {
	users := models.GetAllUsers()
	u.Data["json"] = users
	u.ServeJson()
}