baseweb

package
v1.0.2-dev-10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MulanPSL-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(key string, web WebIface)

Types

type BaseWeb

type BaseWeb struct {
}

func (*BaseWeb) Fclose

func (this *BaseWeb) Fclose(ctx *gin.Context)

type Factroy

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

func NewFactroy

func NewFactroy() *Factroy

func (*Factroy) Get

func (this *Factroy) Get(key string) (WebIface, bool)

func (*Factroy) Register

func (this *Factroy) Register(key string, web WebIface)

type WebIface

type WebIface interface {
	Query(ctx *gin.Context)
	FindById(ctx *gin.Context)
	DeleteById(ctx *gin.Context)
	Save(ctx *gin.Context)
	UpdateNotNull(ctx *gin.Context)
}

func Get

func Get(key string) (WebIface, bool)

Jump to

Keyboard shortcuts

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