Documentation ¶
Index ¶
- func Initdatabase() *gorm.DB
- type Config
- type Feed
- type JwtCustomClaims
- type Post
- type Read
- type Response
- type Star
- type User
- func (u *User) AddSub(sub int64) error
- func (u *User) DelSub(sub int64) error
- func (u *User) Get() error
- func (u *User) GetSub() error
- func (u *User) New() error
- func (u *User) Read(pid int64) error
- func (u *User) ReadPost() ([]int64, error)
- func (u *User) Save() error
- func (u *User) Sub() []subscribe
- func (u *User) UnRead(pid int64) error
- func (u *User) VerPassword(getPassword string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initdatabase ¶
Types ¶
type Config ¶
type JwtCustomClaims ¶
type JwtCustomClaims struct { Mail string `json:"mail"` jwt.StandardClaims }
type Post ¶
Click to show internal directories.
Click to hide internal directories.