circle

package
v0.0.0-...-139547c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

type Circle struct {
	model.BaseModel
	UserID      uint   `json:"-" gorm:"index:circle_user_id_idx;column:user_id;not null"`
	Name        string `json:"name" gorm:"column:name;unique;not null;size:30"`
	Avatar      string `json:"avatar" gorm:"column:avatar;default:null"`
	Description string `json:"description" gorm:"column:description;not null;size:200"`
	Label       string `json:"label" gorm:"column:label;default:null;size:50"`
	Rule        string `json:"rule" gorm:"column:rule;not null;size:500"`
}

圈子

type Member

type Member struct {
	model.BaseModel
	UserID   uint   `json:"user_id" gorm:"index:circle_member_user_id_idx;column:user_id;not null"`
	CircleID uint   `json:"circle_id" gorm:"index:circle_member_circle_id_idx;column:circle_id;not null"`
	Exp      uint   `json:"exp" gorm:"column:name;default:0"`
	Type     string `json:"type" gorm:"column:type;default:'ORDINARY'"`
}

圈子成员

Jump to

Keyboard shortcuts

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