BaseOtherCheck

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURL

func GetURL(args *ArgsGetURL) (result string, err error)

GetURL 检查指定路由设置

func Run

func Run()

func UpdateExpire

func UpdateExpire(args *ArgsUpdateExpire) (err error)

UpdateExpire 延长配置

Types

type ArgsCreate

type ArgsCreate struct {
	//路由地址
	URL string `db:"url" json:"url"`
	//数据
	Data string `db:"data" json:"data"`
}

ArgsCreate 申请新的数据参数

type ArgsGetList

type ArgsGetList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
}

ArgsGetList 获取列表参数

type ArgsGetURL

type ArgsGetURL struct {
	//路由地址
	URL string `db:"url" json:"url"`
}

ArgsGetURL 检查指定路由设置参数

type ArgsUpdateExpire

type ArgsUpdateExpire struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//过期时间
	ExpireAt string `db:"expire_at" json:"expireAt" check:"isoTime"`
}

ArgsUpdateExpire 延长配置参数

type FieldsCheck

type FieldsCheck struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//过期时间
	ExpireAt time.Time `db:"expire_at" json:"expireAt"`
	//路由地址
	URL string `db:"url" json:"url"`
	//数据
	Data string `db:"data" json:"data"`
}

func Create

func Create(args *ArgsCreate) (data FieldsCheck, err error)

Create 申请新的数据

func GetList

func GetList(args *ArgsGetList) (dataList []FieldsCheck, dataCount int64, err error)

GetList 获取列表

Jump to

Keyboard shortcuts

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