dto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialogCreate

type DialogCreate struct {
	PartnerUserID int
}

type DialogUpdate

type DialogUpdate struct {
	ID               int
	PartnerIsBlocked *bool
}

type GroupCreate

type GroupCreate struct {
	Name        string
	Description string
}

type GroupUpdate

type GroupUpdate struct {
	ID          int
	Name        string
	Description string
}

type MessageCreate

type MessageCreate struct {
	ChatID      entity.ChatID
	Content     string
	ContentType entity.ContentType
}

type MessageList

type MessageList struct {
	ChatID  entity.ChatID
	IDAfter int
	Limit   int
	Sort    Sort
}

type Sort

type Sort string
const (
	AscSort  Sort = "asc"
	DescSort Sort = "desc"
)

func (Sort) String

func (s Sort) String() string

type UserCreate

type UserCreate struct {
	Username  string
	Password  string
	Email     string
	FirstName string
	LastName  string
	BirthDate *time.Time
	Bio       string
}

type UserUpdate

type UserUpdate struct {
	ID        int
	Username  string
	Email     string
	FirstName string
	LastName  string
	BirthDate *time.Time
	Bio       string
}

type UserUpdatePassword

type UserUpdatePassword struct {
	UserID      int
	CurPassword string
	NewPassword string
}

Jump to

Keyboard shortcuts

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