presentation

package
v0.0.0-...-58cf2e1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllDlrType = []DlrType{
	DlrTypeNone,
}
View Source
var DlrSortField_value = map[DlrSortField]int32{
	DlrSortFieldNone:      0,
	DlrSortFieldID:        1,
	DlrSortFieldCreatedAt: 2,
	DlrSortFieldUpdatedAt: 3,
}
View Source
var DlrStatus_name = map[int32]DlrStatus{
	0: DlrStatusNone,
	1: DlrStatusActive,
	2: DlrStatusInactive,
}
View Source
var DlrStatus_value = map[DlrStatus]int32{
	DlrStatusNone:     0,
	DlrStatusActive:   1,
	DlrStatusInactive: 2,
}
View Source
var DlrType_name = map[int32]DlrType{
	0: DlrTypeNone,
}
View Source
var DlrType_value = map[DlrType]int32{
	DlrTypeNone: 0,
}
View Source
var PasswordStatus_value = map[PasswordStatus]int32{
	PasswordStatusNone:           0,
	PasswordStatusActive:         1,
	PasswordStatusInactive:       2,
	PasswordStatusAutoGenerated:  3,
	PasswordStatusChangeRequired: 4,
	PasswordStatusExpired:        5,
}
View Source
var UserSortField_value = map[UserSortField]int32{
	UserSortFieldNone:      0,
	UserSortFieldID:        1,
	UserSortFieldName:      2,
	UserSortFieldCreatedAt: 3,
	UserSortFieldUpdatedAt: 4,
}
View Source
var UserStatus_value = map[UserStatus]int32{
	UserStatusNone:     0,
	UserStatusActive:   1,
	UserStatusInactive: 2,
}
View Source
var UserType_name = map[int32]UserType{
	0: UserTypeNone,
	1: UserTypeAdmin,
	2: UserTypeUser,
}
View Source
var UserType_value = map[UserType]int32{
	UserTypeNone:  0,
	UserTypeAdmin: 1,
	UserTypeUser:  2,
}

Functions

This section is empty.

Types

type AuthOps

type AuthOps struct {
	// Don't use
	Auth bool `json:"Auth"`
}

Don't use

type Dlr

type Dlr struct {
	// Id is the id of the dlr
	ID string `json:"Id"`
	// DlrType is the type of the dlr
	DlrType DlrType `json:"DlrType"`
	// DlrStatus is the status of the dlr
	DlrStatus DlrStatus `json:"DlrStatus"`
	// DlrBase is the base values of the dlr
	DlrBase *DlrBase `json:"DlrBase"`
	// DlrCore is the core values of the dlr
	DlrCore *DlrCore `json:"DlrCore"`
	// CreatedAt is the create time of the dlr
	CreatedAt time.Time `json:"CreatedAt"`
	// UpdatedAt is the update time of the dlr
	UpdatedAt time.Time `json:"UpdatedAt"`
}

Dlr represents the basic values of the dlr

type DlrBase

type DlrBase struct {
	// Tags are the tag labels of the dlr
	Tags []string `json:"Tags"`
}

DlrBase represents the base values of the dlr

type DlrBaseInput

type DlrBaseInput struct {
	// Tags are the tag labels of the dlr
	Tags []string `json:"Tags,omitempty"`
}

DlrBase represents the base values of the dlr

type DlrCore

type DlrCore struct {
	// DlrData is the dlr data of the dlr
	DlrData string `json:"DlrData"`
}

DlrCore represents the core values of the dlr

type DlrCoreInput

type DlrCoreInput struct {
	// DlrData is the dlr data of the dlr
	DlrData *string `json:"DlrData,omitempty"`
}

DlrCore represents the core values of the dlr

type DlrDto

type DlrDto struct {
	ModelData      *Dlr
	ModelInputData *DlrInput
	PbData         *pb.Dlr
}

DlrDto is a struct that represents the dto of a dlr basic values.

func NewDlrDto

func NewDlrDto(modelInputData *DlrInput) *DlrDto

NewDlrDto creates a new *DlrDto.

func (*DlrDto) ToModel

func (u *DlrDto) ToModel() *Dlr

ToModel converts *PbData to *ModelData and returns it.

func (*DlrDto) ToPb

func (u *DlrDto) ToPb() *pb.Dlr

ToPb converts *ModelInputData to *PbData and returns it.

type DlrFilterDto

type DlrFilterDto struct {
	ModelInputData *DlrFilterInput
	PbData         *pb.DlrFilter
}

DlrFilterDto is a struct that provides filtering requested dlr data.

func NewDlrFilterDto

func NewDlrFilterDto(modelInputData *DlrFilterInput) *DlrFilterDto

NewDlrFilterDto creates a new *DlrFilterDto.

func (*DlrFilterDto) ToPb

func (u *DlrFilterDto) ToPb() *pb.DlrFilter

ToPb converts *ModelInputData to *PbData and returns it.

type DlrFilterInput

type DlrFilterInput struct {
	// Id is the id of the dlr
	ID *string `json:"Id,omitempty"`
	// DlrType is the type of the dlr
	DlrType *DlrType `json:"DlrType,omitempty"`
	// DlrStatus is the status of the dlr
	DlrStatus *DlrStatus `json:"DlrStatus,omitempty"`
	// Tags are the tag labels of the dlr
	Tags []string `json:"Tags,omitempty"`
	// CreatedAtFrom is the start value of the create time of the dlr
	CreatedAtFrom *time.Time `json:"CreatedAtFrom,omitempty"`
	// CreatedAtTo is the end value of the create time of the dlr
	CreatedAtTo *time.Time `json:"CreatedAtTo,omitempty"`
	// UpdatedAtFrom is the start value of the update time of the dlr
	UpdatedAtFrom *time.Time `json:"UpdatedAtFrom,omitempty"`
	// UpdatedAtTo is the end value of the update time of the dlr
	UpdatedAtTo *time.Time `json:"UpdatedAtTo,omitempty"`
	// SearchText is the value of the full text search
	SearchText *string `json:"SearchText,omitempty"`
	// SortType is the sorting type. It can be only ASC or DESC
	SortType *string `json:"SortType,omitempty"`
	// SortField is the sortable field of the dlr
	SortField *DlrSortField `json:"SortField,omitempty"`
	// PageInput is used for pagination
	Pagination *PageInput `json:"Pagination,omitempty"`
}

DlrFilterInput is used for filtering the Dlrs

type DlrInput

type DlrInput struct {
	// Id is the id of the dlr
	ID *string `json:"Id,omitempty"`
	// DlrStatus is the status of the dlr
	DlrType *DlrType `json:"DlrType,omitempty"`
	// DlrStatus is the status of the dlr
	DlrStatus *DlrStatus `json:"DlrStatus,omitempty"`
	// DlrBase is the base values of the dlr
	DlrBase *DlrBaseInput `json:"DlrBase,omitempty"`
	// DlrCore is the core values of the dlr
	DlrCore *DlrCoreInput `json:"DlrCore,omitempty"`
}

Dlr represents the basic values of the dlr

type DlrSortField

type DlrSortField string
const (
	// No Type
	DlrSortFieldNone DlrSortField = "None"
	// Id
	DlrSortFieldID DlrSortField = "Id"
	// Created Time
	DlrSortFieldCreatedAt DlrSortField = "CreatedAt"
	// Updated Time
	DlrSortFieldUpdatedAt DlrSortField = "UpdatedAt"
)

func (DlrSortField) IsValid

func (e DlrSortField) IsValid() bool

func (DlrSortField) MarshalGQL

func (e DlrSortField) MarshalGQL(w io.Writer)

func (DlrSortField) String

func (e DlrSortField) String() string

func (*DlrSortField) UnmarshalGQL

func (e *DlrSortField) UnmarshalGQL(v interface{}) error

type DlrStatus

type DlrStatus string
const (
	// No Type
	DlrStatusNone DlrStatus = "NONE"
	// Active
	DlrStatusActive DlrStatus = "ACTIVE"
	// Inactive
	DlrStatusInactive DlrStatus = "INACTIVE"
)

func (DlrStatus) IsValid

func (e DlrStatus) IsValid() bool

func (DlrStatus) MarshalGQL

func (e DlrStatus) MarshalGQL(w io.Writer)

func (DlrStatus) String

func (e DlrStatus) String() string

func (*DlrStatus) UnmarshalGQL

func (e *DlrStatus) UnmarshalGQL(v interface{}) error

type DlrType

type DlrType string
const (
	// No Type
	DlrTypeNone DlrType = "NONE"
)

func (DlrType) IsValid

func (e DlrType) IsValid() bool

func (DlrType) MarshalGQL

func (e DlrType) MarshalGQL(w io.Writer)

func (DlrType) String

func (e DlrType) String() string

func (*DlrType) UnmarshalGQL

func (e *DlrType) UnmarshalGQL(v interface{}) error

type Dlrs

type Dlrs struct {
	// The total number of Dlrs that match the filter
	Total int32 `json:"Total"`
	// The Dlrs that match the filter
	Dlrs []*Dlr `json:"Dlrs"`
}

type Error

type Error struct {
	Error string `json:"Error"`
}

Error represents the built-in error message

type ErrorDto

type ErrorDto struct {
	ModelData *Error
	PbData    *pb.Error
}

ErrorDto is a struct that represents the dto of a built-in error.

func NewErrorDto

func NewErrorDto() *ErrorDto

NewErrorDto creates a new *ErrorDto.

func (*ErrorDto) ToModel

func (u *ErrorDto) ToModel() *Error

ToModel converts *PbData to *ModelData and returns it.

type LoginRequest

type LoginRequest struct {
	// UserName is the user name of the user
	UserName string `json:"UserName"`
	// Email is the email address of the user
	Email string `json:"Email"`
	// Password is the password of the user
	Password string `json:"Password"`
}

Login Request provides to authenticate in the system

type LoginRequestDto

type LoginRequestDto struct {
	ModelData      *LoginRequest
	ModelInputData *LoginRequestInput
	PbData         *pb.LoginRequest
}

LoginRequestDto is a struct that represents the dto of a user basic values.

func NewLoginRequestDto

func NewLoginRequestDto(modelInputData *LoginRequestInput) *LoginRequestDto

NewLoginRequestDto creates a new *LoginRequestDto.

func (*LoginRequestDto) ToModel

func (u *LoginRequestDto) ToModel() *LoginRequest

ToModel converts *PbData to *ModelData and returns it.

func (*LoginRequestDto) ToPb

func (u *LoginRequestDto) ToPb() *pb.LoginRequest

ToPb converts *ModelInputData to *PbData and returns it.

type LoginRequestInput

type LoginRequestInput struct {
	// UserName is the user name of the user
	UserName *string `json:"UserName,omitempty"`
	// Email is the email address of the user
	Email *string `json:"Email,omitempty"`
	// Password is the password of the user
	Password *string `json:"Password,omitempty"`
}

type Mutation

type Mutation struct {
}

type PageInput

type PageInput struct {
	// Limit is the max count of return values
	Limit *int32 `json:"Limit,omitempty"`
	// Offset is the starting point of limitation
	Offset *int32 `json:"Offset,omitempty"`
}

PageInput is used for pagination

func (*PageInput) Validate

func (p *PageInput) Validate() *PageInput

type PasswordStatus

type PasswordStatus string
const (
	// No Type
	PasswordStatusNone PasswordStatus = "NONE"
	// Active
	PasswordStatusActive PasswordStatus = "ACTIVE"
	// Inactive
	PasswordStatusInactive PasswordStatus = "INACTIVE"
	// Auto Generated
	PasswordStatusAutoGenerated PasswordStatus = "AUTO_GENERATED"
	// Change Required
	PasswordStatusChangeRequired PasswordStatus = "CHANGE_REQUIRED"
	// Expired
	PasswordStatusExpired PasswordStatus = "EXPIRED"
)

func (PasswordStatus) IsValid

func (e PasswordStatus) IsValid() bool

func (PasswordStatus) MarshalGQL

func (e PasswordStatus) MarshalGQL(w io.Writer)

func (PasswordStatus) String

func (e PasswordStatus) String() string

func (*PasswordStatus) UnmarshalGQL

func (e *PasswordStatus) UnmarshalGQL(v interface{}) error

type Permission

type Permission struct {
	// Policy represents the built-in policy type
	Policy string `json:"Policy"`
}

Permission represents the built-in policies

type PermissionGroup

type PermissionGroup struct {
	// GroupName is the name of the group of permission
	GroupName string `json:"GroupName"`
	// Permissions represents the built-in policies
	Permissions []*Permission `json:"Permissions"`
}

PermissionGroup represents the built-in groups of permissions

type Query

type Query struct {
}

type Role

type Role struct {
	// RoleName is the name of the role of permission
	RoleName string `json:"RoleName"`
	// PermissionGroup represents the built-in groups of permissions
	PermissionGroups []*PermissionGroup `json:"PermissionGroups"`
}

Role represents the built-in role types

type RoleFilterInput

type RoleFilterInput struct {
	// RoleName is the name of the role of permission
	RoleName *string `json:"RoleName,omitempty"`
}

RoleFilterInput is used for filtering the Roles

type Subscription

type Subscription struct {
}

type Token

type Token struct {
	// AuthenticationToken is the authentication token
	AuthenticationToken string `json:"AuthenticationToken"`
	// RefreshToken is the refresh token
	RefreshToken string `json:"RefreshToken"`
}

UserToken represents the object of a token for authentication

type TokenDto

type TokenDto struct {
	ModelData      *Token
	ModelInputData *TokenInput
	PbData         *pb.Token
}

TokenDto is a struct that is used for authentication.

func NewTokenDto

func NewTokenDto(modelInputData *TokenInput) *TokenDto

NewTokenDto creates a new *TokenDto.

func (*TokenDto) ToModel

func (u *TokenDto) ToModel() *Token

ToModel converts *PbData to *ModelData and returns it.

func (*TokenDto) ToPb

func (u *TokenDto) ToPb() *pb.Token

ToPb converts *ModelInputData to *PbData and returns it.

type TokenInput

type TokenInput struct {
	// AuthenticationToken is the authentication token
	AuthenticationToken string `json:"AuthenticationToken"`
	// RefreshToken is the refresh token
	RefreshToken string `json:"RefreshToken"`
}

type User

type User struct {
	// Id is the id of the user
	ID string `json:"Id"`
	// UserName is the user name of the user
	UserName string `json:"UserName"`
	// Email is the email address of the user
	Email string `json:"Email"`
	// Role is the role of the user
	Role string `json:"Role"`
	// UserType is the type of the user
	UserType UserType `json:"UserType"`
	// UserStatus is the status of the user
	UserStatus UserStatus `json:"UserStatus"`
	// UserBase is the base values of the user
	UserBase *UserBase `json:"UserBase"`
	// CreatedAt is the create time of the user
	CreatedAt time.Time `json:"CreatedAt"`
	// UpdatedAt is the update time of the user
	UpdatedAt time.Time `json:"UpdatedAt"`
}

User represents the basic values of the user

type UserBase

type UserBase struct {
	// Tags are the tag labels of the user
	Tags []string `json:"Tags"`
	// FirstName is the first name of the user
	FirstName string `json:"FirstName"`
	// LastName is the last name of the user
	LastName string `json:"LastName"`
}

UserBase represents the base values of the user

type UserBaseInput

type UserBaseInput struct {
	// Tags are the tag labels of the user
	Tags []string `json:"Tags,omitempty"`
	// FirstName is the first name of the user
	FirstName *string `json:"FirstName,omitempty"`
	// LastName is the last name of the user
	LastName *string `json:"LastName,omitempty"`
}

UserBase represents the base values of the user

type UserDto

type UserDto struct {
	ModelData      *User
	ModelInputData *UserInput
	PbData         *pb.User
}

UserDto is a struct that represents the dto of a user basic values.

func NewUserDto

func NewUserDto(modelInputData *UserInput) *UserDto

NewUserDto creates a new *UserDto.

func (*UserDto) ToModel

func (u *UserDto) ToModel() *User

ToModel converts *PbData to *ModelData and returns it.

func (*UserDto) ToPb

func (u *UserDto) ToPb() *pb.User

ToPb converts *ModelInputData to *PbData and returns it.

type UserFilterDto

type UserFilterDto struct {
	ModelInputData *UserFilterInput
	PbData         *pb.UserFilter
}

UserFilterDto is a struct that provides filtering requested user data.

func NewUserFilterDto

func NewUserFilterDto(modelInputData *UserFilterInput) *UserFilterDto

NewUserFilterDto creates a new *UserFilterDto.

func (*UserFilterDto) ToPb

func (u *UserFilterDto) ToPb() *pb.UserFilter

ToPb converts *ModelInputData to *PbData and returns it.

type UserFilterInput

type UserFilterInput struct {
	// Id is the id of the user
	ID *string `json:"Id,omitempty"`
	// UserName is the user name of the user
	UserName *string `json:"UserName,omitempty"`
	// Email is the email address of the user
	Email *string `json:"Email,omitempty"`
	// UserType is the type of the user
	UserType *UserType `json:"UserType,omitempty"`
	// UserStatus is the status of the user
	UserStatus *UserStatus `json:"UserStatus,omitempty"`
	// Tags are the tag labels of the user
	Tags []string `json:"Tags,omitempty"`
	// FirstName is the first name of the user
	FirstName *string `json:"FirstName,omitempty"`
	// LastName is the last name of the user
	LastName *string `json:"LastName,omitempty"`
	// CreatedAtFrom is the start value of the create time of the user
	CreatedAtFrom *time.Time `json:"CreatedAtFrom,omitempty"`
	// CreatedAtTo is the end value of the create time of the user
	CreatedAtTo *time.Time `json:"CreatedAtTo,omitempty"`
	// UpdatedAtFrom is the start value of the update time of the user
	UpdatedAtFrom *time.Time `json:"UpdatedAtFrom,omitempty"`
	// UpdatedAtTo is the end value of the update time of the user
	UpdatedAtTo *time.Time `json:"UpdatedAtTo,omitempty"`
	// SearchText is the value of the full text search
	SearchText *string `json:"SearchText,omitempty"`
	// SortType is the sorting type. It can be only ASC or DESC
	SortType *string `json:"SortType,omitempty"`
	// SortField is the sortable field of the user
	SortField *UserSortField `json:"SortField,omitempty"`
	// PageInput is used for pagination
	Pagination *PageInput `json:"Pagination,omitempty"`
}

UserFilterInput is used for filtering the Users

type UserInput

type UserInput struct {
	// Id is the id of the user
	ID *string `json:"Id,omitempty"`
	// UserName is the user name of the user
	UserName *string `json:"UserName,omitempty"`
	// Email is the email address of the user
	Email *string `json:"Email,omitempty"`
	// Role is the role of the user
	Role *string `json:"Role,omitempty"`
	// UserStatus is the status of the user
	UserType *UserType `json:"UserType,omitempty"`
	// UserStatus is the status of the user
	UserStatus *UserStatus `json:"UserStatus,omitempty"`
	// UserBase is the base values of the user
	UserBase *UserBaseInput `json:"UserBase,omitempty"`
}

User represents the basic values of the user

type UserPassword

type UserPassword struct {
	// Id is the id of the user password
	ID string `json:"Id"`
	// UserId is the id of the user
	UserID string `json:"UserId"`
	// Password is the password of the user
	Password string `json:"Password"`
	// PasswordStatus is the status of password of the user
	PasswordStatus PasswordStatus `json:"PasswordStatus"`
}

UserPassword represents the password values of the user

type UserPasswordDto

type UserPasswordDto struct {
	ModelData      *UserPassword
	ModelInputData *UserPasswordInput
	PbData         *pb.UserPassword
}

UserPasswordDto is a struct that represents the dto of a user password values.

func NewUserPasswordDto

func NewUserPasswordDto(modelInputData *UserPasswordInput) *UserPasswordDto

NewUserPasswordDto creates a new *UserPasswordDto.

func (*UserPasswordDto) ToModel

func (u *UserPasswordDto) ToModel() *UserPassword

ToModel converts *PbData to *ModelData and returns it.

func (*UserPasswordDto) ToPb

func (u *UserPasswordDto) ToPb() *pb.UserPassword

ToPb converts *ModelInputData to *PbData and returns it.

type UserPasswordInput

type UserPasswordInput struct {
	// Id is the id of the user password
	ID *string `json:"Id,omitempty"`
	// UserId is the id of the user
	UserID string `json:"UserId"`
	// Password is the password of the user
	Password string `json:"Password"`
}

UserPassword represents the password values of the user

type UserSortField

type UserSortField string
const (
	// No Type
	UserSortFieldNone UserSortField = "None"
	// Id
	UserSortFieldID UserSortField = "Id"
	// Name
	UserSortFieldName UserSortField = "Name"
	// Created Time
	UserSortFieldCreatedAt UserSortField = "CreatedAt"
	// Updated Time
	UserSortFieldUpdatedAt UserSortField = "UpdatedAt"
)

func (UserSortField) IsValid

func (e UserSortField) IsValid() bool

func (UserSortField) MarshalGQL

func (e UserSortField) MarshalGQL(w io.Writer)

func (UserSortField) String

func (e UserSortField) String() string

func (*UserSortField) UnmarshalGQL

func (e *UserSortField) UnmarshalGQL(v interface{}) error

type UserStatus

type UserStatus string
const (
	// No Type
	UserStatusNone UserStatus = "NONE"
	// Active
	UserStatusActive UserStatus = "ACTIVE"
	// Inactive
	UserStatusInactive UserStatus = "INACTIVE"
)

func (UserStatus) IsValid

func (e UserStatus) IsValid() bool

func (UserStatus) MarshalGQL

func (e UserStatus) MarshalGQL(w io.Writer)

func (UserStatus) String

func (e UserStatus) String() string

func (*UserStatus) UnmarshalGQL

func (e *UserStatus) UnmarshalGQL(v interface{}) error

type UserType

type UserType string
const (
	// No Type
	UserTypeNone UserType = "NONE"
	// Admin
	UserTypeAdmin UserType = "ADMIN"
	// User
	UserTypeUser UserType = "USER"
)

func (UserType) IsValid

func (e UserType) IsValid() bool

func (UserType) MarshalGQL

func (e UserType) MarshalGQL(w io.Writer)

func (UserType) String

func (e UserType) String() string

func (*UserType) UnmarshalGQL

func (e *UserType) UnmarshalGQL(v interface{}) error

type Users

type Users struct {
	// The total number of Users that match the filter
	Total int32 `json:"Total"`
	// The Users that match the filter
	Users []*User `json:"Users"`
}

Jump to

Keyboard shortcuts

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