kk_x

package
v0.0.0-...-cfc9456 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Benchmark_Add

func Benchmark_Add(b *testing.B)

func Benchmark_Add2

func Benchmark_Add2(b *testing.B)

func ResponseFile

func ResponseFile(c *gin.Context, fileName string, data []byte)

Types

type Client

type Client struct {
	Username                  string    `gorm:"column:username;type:varchar(100);not null;unique" json:"username"`
	RealName                  string    `gorm:"column:real_name;type:varchar(100);default:'';not null" json:"real_name"`
	Password                  string    `gorm:"column:password;type:varchar(100);not null" json:"password"`
	TelNum                    string    `gorm:"column:tel_num;type:varchar(100);default:'';not null" json:"tel_num"`
	Notes                     string    `gorm:"column:notes;type:varchar(255);default:'';not null" json:"notes"`
	Gender                    int32     `gorm:"column:gender;type:smallint;default:0;not null" json:"gender"` //0 女 1 男
	IdCard                    string    `gorm:"column:id_card;type:varchar(100);default:'';not null" json:"id_card"`
	RealNameAuthenticationWay int32     `gorm:"column:real_name_authentication_way;type:smallint;default:0;not null" json:"real_name_authentication_way"`
	Height                    float32   `gorm:"column:height;type:numeric(5,2);default:0.0;not null" json:"height"`            // 身高
	Weight                    float32   `gorm:"column:weight;type:numeric(5,2);default:0.0;not null" json:"weight"`            // 体重
	Nickname                  string    `gorm:"column:nickname;type:varchar(100);default:'';not null" json:"nickname"`         // 昵称
	Birthday                  time.Time `gorm:"column:birthday;type:date;not null" json:"birthday"`                            // 生日
	Labels                    string    `gorm:"column:labels;type:varchar(500);default:'';not null" json:"labels"`             // 个人标签
	Introduction              string    `gorm:"column:introduction;type:varchar(500);default:'';not null" json:"introduction"` // 简介
	Avatar                    string    `gorm:"column:avatar;type:varchar(500);default:'';not null" json:"avatar"`             // 头像
}

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

func NewHub

func NewHub() *Hub

func (*Hub) GetClient

func (h *Hub) GetClient() *Client

func (*Hub) PutClient

func (h *Hub) PutClient(c *Client)

Jump to

Keyboard shortcuts

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