Files
public/mysign/def.go
xiexiaojun 2ace0bade5 new
new
2019-03-07 21:30:01 +08:00

25 lines
666 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package mysign
import "time"
const (
_sign_data = "_sign_data"
)
//签名地址
type Sign_client_tbl struct {
Id int `gorm:"primary_key"`
App_key string //key
App_secret string //secret
Expire_time time.Time //超时时间
Strict_sign int //是否强制验签:0用户自定义1强制
Strict_verify int //是否强制验证:0用户自定义1强制
Token_expire_time int //token过期时间
}
//签名必须带的头标记
type Sing_head struct {
Appid string `json:"appid,omitempty"` //appid
Signature string `json:"signature,omitempty"` //签名
}