封装基础数据操作,错误返回
This commit is contained in:
parent
f1a968c3a2
commit
30c0cd8677
|
@ -3,4 +3,5 @@ package common
|
||||||
const (
|
const (
|
||||||
TOKEN_PRE = "player_token_"
|
TOKEN_PRE = "player_token_"
|
||||||
TOKEN_Admin = "Admin_token_"
|
TOKEN_Admin = "Admin_token_"
|
||||||
|
ADMIN_V1 = "/admin/api/v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
package requestmapping
|
package requestmapping
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"qteam/app/constants/common"
|
||||||
"qteam/app/http/entities/backend"
|
"qteam/app/http/entities/backend"
|
||||||
)
|
)
|
||||||
|
|
||||||
var BackendRequestMap = map[string]func() interface{}{
|
var BackendRequestMap = map[string]func() interface{}{
|
||||||
|
|
||||||
"/admin/api/v1/product/create": func() interface{} {
|
common.ADMIN_V1 + "/product/create": func() interface{} {
|
||||||
return new(backend.ProductCreateRequest)
|
return new(backend.ProductCreateRequest)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue