model

package
v0.0.0-...-34b391d Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 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 Bill

type Bill struct {
	gorm.Model          // 包含了ID, CreatedAt, UpdatedAt, DeletedAt
	Fullname     string `form:"fullname" json:"fullname"`
	UmbrellaName string `form:"umbrella_name" json:"umbrella_name"`
	BorrowAt     string `form:"borrow_at" json:"borrow_at"`
	ReturnAt     string `form:"return_at" json:"return_at"`
	DifferenceAt string `form:"difference_at" json:"difference_at"`
}

Bill 票据结构体 https://gorm.io/zh_CN/docs/models.html

type Umbrella

type Umbrella struct {
	gorm.Model                 // 包含了ID, CreatedAt, UpdatedAt, DeletedAt
	UmbrellaName        string `form:"umbrella_name" json:"umbrella_name"`
	UmbrellaTag         string `form:"umbrella_tag" json:"umbrella_tag"`
	UmbrellaDescription string `form:"umbrella_description" json:"umbrella_description"`
	Username            string `form:"username" json:"username"`
	Fullname            string `form:"fullname" json:"fullname"`
	BorrowAt            string `form:"borrow_at" json:"borrow_at"`
	ReturnAt            string `form:"return_at" json:"return_at"`
	DifferenceAt        string `form:"difference_at" json:"difference_at"`
}

Umbrella 雨伞结构体 https://gorm.io/zh_CN/docs/models.html

type User

type User struct {
	gorm.Model        // 包含了ID, CreatedAt, UpdatedAt, DeletedAt
	Username   string `form:"username" json:"username"`
	Email      string `form:"email" json:"email"`
	Phone      string `form:"phone" json:"phone"`
	Password   string `form:"password" json:"password"`
	Fullname   string `form:"fullname" json:"fullname"`
	Rule       string `form:"rule" json:"rule"`
}

User 用户结构体 https://gorm.io/zh_CN/docs/models.html

Jump to

Keyboard shortcuts

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