controller

package
v0.0.0-...-654a53c Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

控制器公共方法

只实现OAuth2中的Password模式作系统登陆用途,其他没有用到的细节均忽略

结算清单相关的资源

静态资源控制器,负责注册HTML、CSS、图片等静态资源

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB(context *gin.Context) *db.Database

func Register

func Register(router *gin.Engine)

Register 统一将系统中所有的控制器注册到路由中

Types

type AccountController

type AccountController struct{}

func (*AccountController) Register

func (c *AccountController) Register(router gin.IRouter)

type AdvertisementController

type AdvertisementController struct{}

func (*AdvertisementController) Register

func (c *AdvertisementController) Register(router gin.IRouter)

type IController

type IController interface {
	Register(gin.IRouter)
}

type OAuth2Controller

type OAuth2Controller struct{}

func (*OAuth2Controller) Register

func (c *OAuth2Controller) Register(router gin.IRouter)

type PaymentController

type PaymentController struct{}

func (*PaymentController) Register

func (c *PaymentController) Register(router gin.IRouter)

type ProductController

type ProductController struct{}

func (*ProductController) Register

func (c *ProductController) Register(router gin.IRouter)

type SettlementController

type SettlementController struct{}

func (*SettlementController) Register

func (c *SettlementController) Register(router gin.IRouter)

type StaticController

type StaticController struct{}

func (*StaticController) Register

func (c *StaticController) Register(router gin.IRouter)

Jump to

Keyboard shortcuts

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