entities

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserDetail added in v0.0.3

func NewUserDetail(data User) dtos.UserDetailResponse

Types

type CreateUser

type CreateUser struct {
	FullName    string
	PhoneNumber string
	UserType    string
	IsActive    bool
	CreatedAt   time.Time
	CreatedBy   string
}

type Identity added in v0.0.3

type Identity struct {
	Email  string `json:"email,omitempty"`
	UserID int64  `json:"user_id,omitempty"`
}

type LockingOpt

type LockingOpt struct {
	PessimisticLocking bool
}

type UpdateUser added in v0.0.8

type UpdateUser struct {
	UserID      int64
	Fullname    string
	PhoneNumber string
	UserType    string
	UpdatedAt   time.Time
}

func NewUpdateUser added in v0.0.8

func NewUpdateUser(data dtos.UpdateUserRequest) UpdateUser

type UpdateUserStatus

type UpdateUserStatus struct {
	UserID    int64
	IsActive  bool
	UpdatedAt time.Time
}

type User added in v0.0.8

type User struct {
	UserID      int64
	Email       string
	Password    string
	Fullname    string
	PhoneNumber string
	UserType    string
	IsActive    bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

func NewCreateUser

func NewCreateUser(data dtos.CreateUserRequest, cfg config.Config) User

Jump to

Keyboard shortcuts

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