BaseSaving

package
v5.1.42 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteID

func DeleteID(args *ArgsDeleteID) (err error)

DeleteID 删除数据参数

func GetMark

func GetMark(args *ArgsGetMark) (val string, err error)

GetMark 获取指定的数据

func Run

func Run()

Types

type ArgsDeleteID

type ArgsDeleteID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsDeleteID 删除数据参数

type ArgsGetMark

type ArgsGetMark struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//标识码
	Mark string `db:"mark" json:"mark" check:"mark"`
}

ArgsGetMark 获取指定的数据参数

type ArgsUpdateMark

type ArgsUpdateMark struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id" empty:"true"`
	//标识码
	Mark string `db:"mark" json:"mark" check:"mark"`
	//数据集合
	Val string `db:"val" json:"val"`
}

ArgsUpdateMark 更新数据参数

type FieldsSaving

type FieldsSaving struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//过期时间
	ExpireAt time.Time `db:"expire_at" json:"expireAt"`
	//标识码
	Mark string `db:"mark" json:"mark"`
	//数据集合
	Val string `db:"val" json:"val"`
}

func UpdateMark

func UpdateMark(args *ArgsUpdateMark) (data FieldsSaving, err error)

UpdateMark 更新数据

Jump to

Keyboard shortcuts

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