- 重构createWaybillOn3rdProviders

This commit is contained in:
gazebo
2019-03-30 17:11:23 +08:00
parent 10a444c895
commit 96fb2d9535
11 changed files with 127 additions and 100 deletions

View File

@@ -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,