- 重构createWaybillOn3rdProviders
This commit is contained in:
@@ -36,6 +36,10 @@ func init() {
|
||||
AdminCtx = NewWithUserName(nil, model.AdminName, nil, nil)
|
||||
}
|
||||
|
||||
func NewWithOnlyUserName(userName string) (ctx *Context) {
|
||||
return NewWithUserName(nil, userName, nil, nil)
|
||||
}
|
||||
|
||||
func NewWithUserName(notUsed interface{}, userName string, w http.ResponseWriter, r *http.Request) (ctx *Context) {
|
||||
ctx = &Context{
|
||||
token: userName,
|
||||
|
||||
Reference in New Issue
Block a user