author

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Type    string //customer/user
	Id      uint64
	Name    string
	Avatar  string
	Gender  string
	HomeURL string //用户主页网址
}

func New

func New(id uint64, types ...string) *Author

func (*Author) Get

func (a *Author) Get(c echo.Context) *Author

type Customer

type Customer struct {
	Id     uint64 `db:"id"`
	Name   string `db:"name"`
	Avatar string `db:"avatar"`
}

func (*Customer) Name_

func (c *Customer) Name_() string

type User

type User struct {
	Id       uint   `db:"id"`
	Username string `db:"username"`
	Avatar   string `db:"avatar"`
}

func (*User) Name_

func (u *User) Name_() string

Jump to

Keyboard shortcuts

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