use websocket

This commit is contained in:
landaiqing
2024-08-17 20:01:03 +08:00
parent e8fbff7e7f
commit 57964d39af
11 changed files with 280 additions and 25 deletions

View File

@@ -5,14 +5,16 @@ import (
"schisandra-cloud-album/api/oauth_api"
"schisandra-cloud-album/api/sms_api"
"schisandra-cloud-album/api/user_api"
"schisandra-cloud-album/api/websocket_api"
)
// Apis 统一导出的api
type Apis struct {
UserApi user_api.UserAPI
CaptchaApi captcha_api.CaptchaAPI
SmsApi sms_api.SmsAPI
OAuthApi oauth_api.OAuthAPI
UserApi user_api.UserAPI
CaptchaApi captcha_api.CaptchaAPI
SmsApi sms_api.SmsAPI
OAuthApi oauth_api.OAuthAPI
WebsocketApi websocket_api.WebsocketAPI
}
// Api new函数实例化实例化完成后会返回结构体地指针类型