common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelFile

func DelFile(filepath string) bool

func FileExists

func FileExists(filepath string) bool

func GetExcelColName

func GetExcelColName(index int) string

func HashKey

func HashKey(src *model.DatasV3) string

func PostInt

func PostInt(key string, ctx *gin.Context) (int, error)

func PostInt8

func PostInt8(key string, ctx *gin.Context) (int8, error)

Types

type ModelData

type ModelData[T any] struct {
}

type ModleDataInterface

type ModleDataInterface[T any] interface {
	Set([]*T)
	GetOne(col string, query string, args ...any) T
	Get(col string, query string, args ...any) []*T
}

ModleDataInterface TODO

type Server

type Server struct {
	*viper.Viper
	*log.Logger
	*CommonDao
}

func NewServer

func NewServer(log *log.Logger, ctl *CommonDao, conf *viper.Viper) *Server

Jump to

Keyboard shortcuts

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