feat: pay bills
This commit is contained in:
parent
d747454f4a
commit
8c681282ef
15 changed files with 607 additions and 65 deletions
|
|
@ -8,13 +8,13 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
UserKey string = "user"
|
||||
UserKey string = "user"
|
||||
|
||||
URLPathKey string = "url_path"
|
||||
ConfigKey string = "config"
|
||||
CSRFTokenKey string = "csrf_token"
|
||||
AppVersionKey string = "app_version"
|
||||
SidebarCollapsedKey string = "sidebar_collapsed"
|
||||
URLPathKey string = "url_path"
|
||||
ConfigKey string = "config"
|
||||
CSRFTokenKey string = "csrf_token"
|
||||
AppVersionKey string = "app_version"
|
||||
SidebarCollapsedKey string = "sidebar_collapsed"
|
||||
)
|
||||
|
||||
func User(ctx context.Context) *model.User {
|
||||
|
|
@ -26,7 +26,6 @@ func WithUser(ctx context.Context, user *model.User) context.Context {
|
|||
return context.WithValue(ctx, UserKey, user)
|
||||
}
|
||||
|
||||
|
||||
func URLPath(ctx context.Context) string {
|
||||
path, _ := ctx.Value(URLPathKey).(string)
|
||||
return path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue