This commit is contained in:
2025-12-16 12:05:05 +09:00
parent df2eade8c8
commit fb07e0b010
11 changed files with 1951 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package model
type CodeStrc struct {
CIPHERKEY string
CIPHERIVKEY string
MESSAGE_TOKEN string
MESSAGE_ID string
SENDBIRD_KEY string
SENDBIRD_VERSION string
SENDBIRD_TOKEN string
ETHERSCAN_TOKEN string
CYBX_MAINNET string
CYBX_TESTNET string
ALCHEMY_MAINNET string
ALCHEMY_TESTNET string
}
+34
View File
@@ -0,0 +1,34 @@
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"`
}
+28
View File
@@ -0,0 +1,28 @@
package model
type RequestDefaultStrc struct {
GrantType string `form:"grantType" json:"grantType" example:"session"`
AngkorId string `form:"angkorid" json:"angkorid" example:"ak123214"`
}
type ResponseDefaultModel struct {
Code int `json:"code" example:"200"`
Message string `json:"message" example:"success"`
}
type DefaultErrorModel struct {
Code int `json:"code" example:"400"`
Message string `json:"message" example:"message"`
}
type ApplicationInfo struct {
AppId string `json:"appId" example:"11"`
ApplicationName string `json:"appName" example:"angkorlife"`
ApplicationCompany string `json:"appCompany" example:"digital angkor"`
ApplicationIcon string `json:"appIcon" example:"https://icon.angkorlifes.com/images/angkorlife.jpg"`
ApplicationConsent string `json:"appConsent" example:"127"`
ApplicationCallbackUrl string `json:"appCallback" example:"https://callback.angkorlifes.com/receive"`
ServiceCategory string `json:"serviceCategory" example:"game"`
AppleBundleIDs string `json:"appleBundleIDs" example:"com.angkorlifes"`
AndroidPackageName string `json:"androidPackageName" example:"com.angkorlifes"`
}