first commit

This commit is contained in:
hayato5246
2026-03-31 19:32:59 +09:00
commit d10b794c9f
78 changed files with 1671595 additions and 0 deletions

13
models/websocket.go Normal file
View File

@@ -0,0 +1,13 @@
package models
// WSMessage WebSocket 메시지 공통 구조
type WSMessage struct {
Type string `json:"type"` // "subscribe" | "unsubscribe" | "price" | "error"
Code string `json:"code"` // 종목코드
Data interface{} `json:"data"` // StockPrice 또는 에러 메시지
}
// WSError WebSocket 에러 메시지 데이터
type WSError struct {
Message string `json:"message"`
}