Files
quyun-v2/backend/app/http/tenant/dto/me.go
2025-12-18 10:27:40 +08:00

14 lines
503 B
Go

package dto
import "quyun/v2/database/models"
// MeResponse returns the resolved tenant context for the current request.
type MeResponse struct {
// Tenant is the resolved tenant by `tenantCode`.
Tenant *models.Tenant `json:"tenant,omitempty"`
// User is the authenticated user derived from JWT `user_id`.
User *models.User `json:"user,omitempty"`
// TenantUser is the membership record of the authenticated user within the tenant.
TenantUser *models.TenantUser `json:"tenant_user,omitempty"`
}