app-cloudep-portal-api-gateway/internal/domain/payload.go

15 lines
252 B
Go
Raw Normal View History

2024-08-27 07:40:00 +00:00
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"
)