model

package
v0.0.0-...-0944201 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileResponse

type ProfileResponse struct {
	UserId      string    `json:"userId"`
	Email       string    `json:"email"`
	Name        string    `json:"name"`
	LegalName   string    `json:"description"`
	UserName    string    `json:"username"`
	Roles       []string  `json:"roles"`
	Address     string    `json:"address"`
	DateOfBirth string    `json:"dateOfBirth"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type UpdateProfileRequest

type UpdateProfileRequest struct {
	UserId      string    `json:"userId"`
	Email       string    `json:"email"`
	Name        string    `json:"name"`
	LegalName   string    `json:"description"`
	UserName    string    `json:"username"`
	Roles       []string  `json:"roles"`
	Address     string    `json:"address"`
	DateOfBirth string    `json:"dateOfBirth"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type User

type User struct {
	Email string `json:"email"`
	Id    string `json:"id"`
}

type UserCtxKeyType

type UserCtxKeyType string
const UserCtxKey UserCtxKeyType = "user"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL