You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
473 B

package role
import "github.com/gin-gonic/gin"
func Router(r *gin.Engine) {
g := r.Group("role")
// 查询一条
g.GET("", GetRow) // GET /role?id=21
// 查询多条
g.GET("list", GetList) // GET /role/list?
// 添加
g.POST("", Add) // POST /role
// 删除
g.DELETE("", Delete) // DELETE /role?id=22&id=33&id=44
// 查询回收站
g.GET("recycle", Recycle) // GET /role/recycle?
// 回收站还原
g.PUT("restore", Restore) // PUT /role?id=22&id=33&id=44
}