dto

package
v0.0.0-...-e98d214 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInputDTO

type AccountInputDTO struct {
	Username *string `json:"username" example:"username"`
	Password *string `json:"password" example:"secret"`
	SiteID   *uint   `json:"site_id" example:"1"`
	PhoneID  *uint   `json:"phone_id" example:"1"`
	MailID   *uint   `json:"mail_id" example:"1"`
}

type ItemsOutputDTO

type ItemsOutputDTO struct {
	Items interface{} `json:"items"`
	Count int64       `json:"count"`
}

type LoginInputDTO

type LoginInputDTO struct {
	Email    string `json:"email" example:"admin@admin.com"`
	Password string `json:"password" example:"12345678"`
	Expire   bool   `json:"expire" example:"false"`
}

type OperatorInputDTO

type OperatorInputDTO struct {
	Name *string `json:"name" example:"TIM"`
}

Accounts example

type PasswordInputDTO

type PasswordInputDTO struct {
	Password        *string `json:"password" example:"secret"`
	PasswordConfirm *string `json:"password_confirm" example:"secret"`
}

func (PasswordInputDTO) IsValid

func (p PasswordInputDTO) IsValid() bool

type PermissionsInputDTO

type PermissionsInputDTO struct {
	UserModule    *bool `json:"user_module" example:"true"`
	ProfileModule *bool `json:"profile_module" example:"true"`
}

type PhoneInputDTO

type PhoneInputDTO struct {
	Number     *string `json:"number" example:"TIM"`
	OperatorID *uint   `json:"operator_id" example:"1"`
}

type ProfileInputDTO

type ProfileInputDTO struct {
	Name        *string             `json:"name" example:"ADMIN"`
	Permissions PermissionsInputDTO `json:"permissions"`
}

type SiteInputDTO

type SiteInputDTO struct {
	Name *string `json:"name" example:"Google"`
	URL  *string `json:"url" example:"https://www.google.com/"`
}

type UserInputDTO

type UserInputDTO struct {
	Name      *string `json:"name" example:"John Cena"`
	Email     *string `json:"email" example:"john.cena@email.com"`
	Status    *bool   `json:"status" example:"true"`
	ProfileID *uint   `json:"profile_id" example:"1"`
}

Jump to

Keyboard shortcuts

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