35 lines
1.3 KiB
Go
35 lines
1.3 KiB
Go
package model
|
|
|
|
type Header struct {
|
|
AppKey string `form:"appKey" json:"appKey" example:"adpsofimerpifgarpo8rt320"`
|
|
SecretKey string `form:"secretKey" json:"secretKey" example:"sdfjlsdkfjsldkfjlsdkjflsdkjflsdkjflsdkj"`
|
|
}
|
|
|
|
type ServerUrlStrc struct {
|
|
AAuthUrl string `form:"aauthUrl" json:"aauthUrl" example:"http://aauth.angkorlife.com"`
|
|
LifeUrl string `form:"lifeUrl" json:"lifeUrl" example:"http://life.angkorlife.com"`
|
|
WattUrl string `form:"wattUrl" json:"wattUrl" example:"http://watt.angkorlife.com"`
|
|
}
|
|
|
|
type UserInfoStrc struct {
|
|
AngkorId string `form:"angkorId" json:"angkorId" example:"akDEvQ1693297580"`
|
|
UserId string `form:"userId" json:"userId" example:"user01"`
|
|
UserAngkorId string `form:"userAngkorId" json:"userAngkorId" example:"alice"`
|
|
PhoneNumber string `form:"phoneNumber" json:"phoneNumber" example:"8551012345678"`
|
|
Email string `form:"email" json:"email" example:"user01@example.com"`
|
|
}
|
|
|
|
type AuthInitStrc struct {
|
|
GrantType string `form:"grantType" json:"grantType" example:"session"`
|
|
UserAngkorId string `form:"userAngkorId" json:"userAngkorId" example:"alice"`
|
|
}
|
|
|
|
type AuthKeyStrc struct {
|
|
TokenType string `json:"tokenType" example:"bearer"`
|
|
AuthKey string `json:"authKey" example:"adpsofimerpifgarpo8rt320"`
|
|
}
|
|
|
|
type WattInfoStrc struct {
|
|
WattAmount string `form:"wattAmount" json:"wattAmount" example:"0.0"`
|
|
}
|