BaseParamsHash

package
v5.2.10 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(tokenID int64, userID int64, params any) (b bool)

Check 检查参数是否重复提交

func CheckHash

func CheckHash(tokenID int64, userID int64, hash string) (b bool)

CheckHash 检查指定的hash是否重复

func CheckParamsHash

func CheckParamsHash(c any, hash string) (b bool)

CheckParamsHash 检查随机掩码

Types

type DataHash

type DataHash struct {
	//随机掩码
	Hash string `json:"hash"`
	//token
	TokenID int64 `json:"tokenID"`
	//用户ID
	UserID int64 `json:"userID"`
}

Jump to

Keyboard shortcuts

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