user

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseUser

type BaseUser models.GinUser

type GinUser

type GinUser struct {
	BaseUser
	UserInfo GinUserInfo `gorm:"foreignKey:user_id" json:"user_info"`
}

GinUser preload获取关联列表

type GinUserInfo

type GinUserInfo models.GinUserInfo

type IndexRequest

type IndexRequest struct {
	Page int `form:"page" json:"page" binding:"required"`
}

IndexRequest 获取用户列表请求参数

type LoginRequest

type LoginRequest struct {
	Phone    string `form:"phone" json:"phone" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

LoginRequest 用户登录请求参数

type User

type User struct {
	BaseUser
	RoleIds []uint64 `gorm:"-" json:"role_ids"`
}

type UserList

type UserList struct {
	BaseUser
	GinUserInfo `gorm:"foreignKey:user_id" json:"user_info"`
}

UserList joins获取关联列表

Jump to

Keyboard shortcuts

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