admin

package
v0.0.0-...-d402f94 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Site = setting.Config.Site

Functions

func UploadImage

func UploadImage(c *gin.Context)

UploadImage 上传图片,可以上传到本地或者上传到oss

Types

type About

type About struct {
	Base
}

func (*About) Detail

func (b *About) Detail(c *gin.Context)

Detail 详情

func (*About) Index

func (b *About) Index(c *gin.Context)

Index 文章新增、编辑

func (*About) Update

func (b *About) Update(c *gin.Context)

Update 修改

type Article

type Article struct {
	Base
}

func (*Article) Category

func (b *Article) Category(c *gin.Context)

Category 种类渲染页面

func (*Article) CategoryList

func (b *Article) CategoryList(c *gin.Context)

CategoryList 获取列表数据

func (*Article) Destroy

func (b *Article) Destroy(c *gin.Context)

Destroy 删除

func (*Article) Detail

func (b *Article) Detail(c *gin.Context)

Detail 详情

func (*Article) Edit

func (b *Article) Edit(c *gin.Context)

Edit 文章新增、编辑

func (*Article) EditMd

func (b *Article) EditMd(c *gin.Context)

EditMd markdown文章新增、编辑

func (*Article) Index

func (b *Article) Index(c *gin.Context)

func (*Article) Insert

func (b *Article) Insert(c *gin.Context)

Insert 新增保存

func (*Article) List

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

List 列表

func (*Article) Update

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

Update 修改

type Auth

type Auth struct{}

func (*Auth) Login

func (_ *Auth) Login(c *gin.Context)

Login 登录

func (*Auth) SignIn

func (_ *Auth) SignIn(c *gin.Context)

SignIn 登录

func (*Auth) SignUp

func (_ *Auth) SignUp(c *gin.Context)

SignUp 注册

type Banner struct {
	Base
}

func (*Banner) Destroy

func (b *Banner) Destroy(c *gin.Context)

Destroy 删除

func (*Banner) Index

func (b *Banner) Index(c *gin.Context)

func (*Banner) Insert

func (b *Banner) Insert(c *gin.Context)

Insert 新增保存

func (*Banner) List

func (b *Banner) List(c *gin.Context)

List 列表

func (*Banner) Update

func (b *Banner) Update(c *gin.Context)

Update 修改

type Base

type Base struct {
	Controller
}

func (*Base) List

func (base *Base) List(c *gin.Context)

type Category

type Category struct {
	Base
}

func (*Category) Destory

func (cat *Category) Destory(c *gin.Context)

Destory 删除

func (*Category) Index

func (cat *Category) Index(c *gin.Context)

func (*Category) Insert

func (cat *Category) Insert(c *gin.Context)

Insert 新增保存

func (*Category) List

func (cat *Category) List(c *gin.Context)

List 列表

func (*Category) Update

func (cat *Category) Update(c *gin.Context)

Update 修改

type Class

type Class struct {
	Name  string
	Grade int `json:"grade"`
}

type Comment

type Comment struct {
	Base
}

func (*Comment) Destory

func (m *Comment) Destory(c *gin.Context)

Destory 删除

func (*Comment) Index

func (m *Comment) Index(c *gin.Context)

func (*Comment) Insert

func (m *Comment) Insert(c *gin.Context)

Insert 新增保存

func (*Comment) List

func (m *Comment) List(c *gin.Context)

List 列表

type Controller

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

func (*Controller) Init

func (ctrl *Controller) Init(this ControllerInterface) error

type ControllerInterface

type ControllerInterface interface {
	// contains filtered or unexported methods
}

type Index

type Index struct{}

func (*Index) Index

func (_ *Index) Index(c *gin.Context)

func (*Index) Test

func (_ *Index) Test(c *gin.Context)

Test 欢迎

func (*Index) Welcome

func (_ *Index) Welcome(c *gin.Context)

Welcome 欢迎

type Link struct {
	Base
}

func (*Link) Destory

func (l *Link) Destory(c *gin.Context)

Destory 删除

func (*Link) Index

func (l *Link) Index(c *gin.Context)

func (*Link) Insert

func (l *Link) Insert(c *gin.Context)

Insert 新增保存

func (*Link) List

func (l *Link) List(c *gin.Context)

List 列表

func (*Link) Update

func (l *Link) Update(c *gin.Context)

Update 修改

type Message

type Message struct {
	Base
}

func (*Message) Destory

func (m *Message) Destory(c *gin.Context)

Destory 删除

func (*Message) Index

func (m *Message) Index(c *gin.Context)

func (*Message) Insert

func (m *Message) Insert(c *gin.Context)

Insert 新增保存

func (*Message) List

func (m *Message) List(c *gin.Context)

List 列表

type Rank

type Rank struct {
	// 用到json记得一定大写首字母
	UserId string `json:"userId"`
	Name   string `json:"name"`
}

type Server

type Server struct {
	Base
}

func (*Server) List

func (s *Server) List(c *gin.Context)

List 列表

type Student

type Student struct {
	Name  string `json:"name"`
	Age   int
	Class *Class `json:"class"`
}

type System

type System struct {
	Base
}

func (*System) Bak

func (s *System) Bak(c *gin.Context)

Bak 数据备份

func (*System) Restore

func (s *System) Restore(c *gin.Context)

Restore 数据还原

func (*System) Setting

func (s *System) Setting(c *gin.Context)

Setting 系统设置

func (*System) SettingList

func (s *System) SettingList(c *gin.Context)

SettingList 系统设置

func (*System) SettingUpdate

func (s *System) SettingUpdate(c *gin.Context)

SettingUpdate 修改系统设置

func (*System) SettingUpdateOld

func (s *System) SettingUpdateOld(c *gin.Context)

SettingUpdateOld 修改系统设置

type User

type User struct {
	Base
}

func (*User) Destory

func (u *User) Destory(c *gin.Context)

Destory 删除

func (*User) Index

func (u *User) Index(c *gin.Context)

Index 用户资料首页

func (*User) Info

func (u *User) Info(c *gin.Context)

Info 用户资料首页

func (*User) Insert

func (u *User) Insert(c *gin.Context)

Insert 新增保存

func (*User) List

func (u *User) List(c *gin.Context)

List 用户列表

func (*User) Password

func (u *User) Password(c *gin.Context)

Password 密码管理

func (*User) Update

func (u *User) Update(c *gin.Context)

Update 修改

func (*User) Users

func (u *User) Users(c *gin.Context)

Users 用户列表

Jump to

Keyboard shortcuts

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