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
}

//RequestLogin 登录请求
type RequestLogin struct {
	Account  string `json:"account"`
	Password string `json:"password"`
}

//ResponseLogin 登录响应
type ResponseLogin struct {
	AuthCode string `json:"authcode"`
}

//RequestSwapCompany 切换公司
type RequestSwapCompany struct {
}

// ResponseSwapCompany ...
type ResponseSwapCompany struct {
}