thread-master/apps/backend/internal/domain/const.go

21 lines
491 B
Go
Raw Normal View History

2026-07-10 12:54:45 +00:00
package domain
// SuccessCode is the project success envelope code (AGENTS.md / spec A-07).
// Migrated from stand-alone-service 10200 → unified 102000.
const SuccessCode int64 = 102000
const SuccessMessage = "success"
const TokenTypeBearer = "Bearer"
type ContextKey string
func (c ContextKey) String() string { return string(c) }
const (
UIDCode ContextKey = "uid"
RoleCode ContextKey = "role"
ScopeCode ContextKey = "scope"
DeviceIDCode ContextKey = "device_id"
)