auth.go 689 字节
package protocol

const (
	HeaderAccessToken  string = "x-mmm-accesstoken"
	HeaderRefreshToken string = "x-mmm-refreshtoken"
	HeaderUID          string = "x-mmm-uid"
	HeaderUUID         string = "x-mmm-uuid"
	HeaderTimestamp    string = "x-mmm-timestamp"
	HeaderDevicetype   string = "x-mmm-devicetype"
	HeaderAppproject   string = "x-mmm-appproject"
	HeaderSign         string = "x-mmm-sign"
)

//BaseHeader 请求的header数据
//减少在具体业务方法中使用 this.Ctx.Input.Header("xxxx")
type BaseHeader struct {
	AccessToken  string
	RefreshToken string
	AppProject   string
	Devicetype   string
	Sign         string
	UUID         string
	Timestamp    int
	UID          int
}