first commit
This commit is contained in:
13
models/token.go
Normal file
13
models/token.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// TokenResponse 키움증권 토큰 발급 응답
|
||||
type TokenResponse struct {
|
||||
Token string `json:"token"` // 액세스 토큰
|
||||
TokenType string `json:"token_type"` // "bearer"
|
||||
ExpiresAt string `json:"expires_dt"` // 만료 일시 (YYYYMMDDHHmmss)
|
||||
ReturnCode int `json:"return_code"`
|
||||
ReturnMsg string `json:"return_msg"`
|
||||
ExpiresTime time.Time `json:"-"` // 파싱된 만료 시각
|
||||
}
|
||||
Reference in New Issue
Block a user