complete role crud
This commit is contained in:
13
common/err/common.go
Normal file
13
common/err/common.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package err
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/rogeecn/gen"
|
||||
)
|
||||
|
||||
var (
|
||||
BindBodyFailed = gen.NewBusError(http.StatusBadRequest, http.StatusBadRequest, "Body参数错误")
|
||||
BindQueryFailed = gen.NewBusError(http.StatusBadRequest, http.StatusBadRequest, "Query参数错误")
|
||||
BindPathFailed = gen.NewBusError(http.StatusBadRequest, http.StatusBadRequest, "Path参数错误: %s")
|
||||
)
|
||||
Reference in New Issue
Block a user