15 lines
252 B
Go
15 lines
252 B
Go
|
package domain
|
||
|
|
||
|
type ContextKey string
|
||
|
|
||
|
func (c ContextKey) ToString() string {
|
||
|
return string(c)
|
||
|
}
|
||
|
|
||
|
const (
|
||
|
RoleCode ContextKey = "role"
|
||
|
DeviceIDCode ContextKey = "device_id"
|
||
|
ScopeCode ContextKey = "scope"
|
||
|
UidCode ContextKey = "uid"
|
||
|
)
|