dto

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu struct {
	Id     string `json:"id"`
	Name   string
	Path   string
	Type   string
	Method string

	CreatedBy  string
	ModifiedBy string
}
func (a *Menu) GetMaps() map[string]interface{}

type Role

type Role struct {
	RoleCreate
	Id         string `json:"id"`
	CreatedBy  string
	ModifiedBy string
}

func (*Role) GetMaps

func (a *Role) GetMaps() map[string]interface{}

type RoleCreate

type RoleCreate struct {
	Name   string `json:"name"`
	Status int    `json:"status"`
	Remark string `json:"remark"`
}

type User

type User struct {
	dto.User
	CreatedTime      *time.Time `json:"createdTime"`
	LastModifiedTime *time.Time `json:"lastModifiedTime"`
	DelFlag          *bool      `json:"del_flag"`
	Status           *int       `json:"status"`
	Avatar           *string    `json:"avatar,omitempty"`
	Remark           *string    `json:"remark,omitempty"`
	LoginTimes       *int       `json:"loginTimes"`
	LastLoginTime    *time.Time `json:"lastLoginTime,omitempty"`
	LastLoginIp      *string    `json:"lastLoginIp,omitempty"`
	Roles            []Role     `json:"roles,omitempty"`
}

func (*User) AsDomain

func (u *User) AsDomain() *domain.User

func (*User) GetMaps

func (a *User) GetMaps() map[string]interface{}

Jump to

Keyboard shortcuts

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