dao

package
v0.0.0-...-c6f1323 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cookie(c *gin.Context)

func Creates

func Creates(c *gin.Context)

实现Creates方法 批量新建文章

Types

type Article

type Article struct{}

创建结构体类型 Article

func NewArticle

func NewArticle() Article

新建Article 实例

func (Article) Delete

func (a Article) Delete(c *gin.Context)

实现Delete方法

func (Article) Get

func (a Article) Get(c *gin.Context)

实现Get方法

func (Article) List

func (a Article) List(c *gin.Context)

实现List方法

func (Article) Update

func (a Article) Update(c *gin.Context)

实现Update方法

type Dao

type Dao struct {
}

func (*Dao) GetAuth

func (d *Dao) GetAuth(username, password string) (model.Auth, error)

调用 auth.Get()

func (*Dao) GetRoleId

func (d *Dao) GetRoleId(username string) string

func (*Dao) Login

func (d *Dao) Login(username, password string) (model.User, error)

func (Dao) ProfileCreate

func (d Dao) ProfileCreate(desc, img string) (uint, error)

func (*Dao) Register

func (d *Dao) Register(username, password string) (model.User, error)

Jump to

Keyboard shortcuts

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