entities

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 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 Users) 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 UpdateUserStatus

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

type UpdateUsers

type UpdateUsers struct {
	UserID      int64
	Email       string
	Fullname    string
	Password    string
	PhoneNumber string
	UserType    string
	UpdatedAt   time.Time
	UpdatedBy   string
}

func NewUpdateUsers

func NewUpdateUsers(data dtos.UpdateUserRequest) UpdateUsers

type Users

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

func NewCreateUser

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

Jump to

Keyboard shortcuts

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