Skip to content

Commit 632cd1a

Browse files
committed
rm unuse code
1 parent b2dd746 commit 632cd1a

22 files changed

+17
-1229
lines changed

apis/assistant.go

Lines changed: 0 additions & 102 deletions
This file was deleted.

apis/bot.go

Lines changed: 0 additions & 70 deletions
This file was deleted.

apis/login.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ func SmsLogin(ctx *gin.Context) {
115115
AppKey: appkey,
116116
})
117117
}
118-
//assistant send welcome message
119-
services.InitUserAssistant(ctxs.ToCtx(ctx), userId, nickname, "")
120118
}
121119
}
122120
sdk := imsdk.GetImSdk(appkey)
@@ -209,8 +207,6 @@ func EmailLogin(ctx *gin.Context) {
209207
AppKey: appkey,
210208
})
211209
}
212-
//assistant send welcome message
213-
services.InitUserAssistant(ctxs.ToCtx(ctx), userId, nickname, "")
214210
}
215211
}
216212
sdk := imsdk.GetImSdk(appkey)

apis/models/assistant.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

apis/models/bot.go

Lines changed: 0 additions & 64 deletions
This file was deleted.

apis/models/post.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

apis/models/telebot.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package models
2+
3+
type TelegramBot struct {
4+
BotId string `json:"bot_id"`
5+
BotName string `json:"bot_name"`
6+
BotToken string `json:"bot_token"`
7+
CreatedTime int64 `json:"created_time"`
8+
}
9+
10+
type TelegramBots struct {
11+
Items []*TelegramBot `json:"items"`
12+
Offset string `json:"offset"`
13+
}
14+
15+
type TelegramBotIds struct {
16+
BotIds []string `json:"bot_ids"`
17+
}

routers/router.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ func Route(eng *gin.Engine, prefix string) *gin.RouterGroup {
2323
group.POST("/login/qrcode/confirm", apis.ConfirmQrCode)
2424
group.POST("/file_cred", apis.GetFileCred)
2525

26-
group.GET("/bots/list", apis.QryBots)
27-
28-
group.POST("/assistants/answer", apis.AssistantAnswer)
29-
group.POST("/assistants/prompts/add", apis.PromptAdd)
30-
group.POST("/assistants/prompts/update", apis.PromptUpdate)
31-
group.POST("/assistants/prompts/del", apis.PromptDel)
32-
group.POST("/assistants/prompts/batchdel", apis.PromptBatchDel)
33-
group.GET("/assistants/prompts/list", apis.QryPrompts)
34-
35-
group.POST("/bots/messages/listener", apis.BotMsgListener)
36-
3726
group.POST("/users/update", apis.UpdateUser)
3827
group.POST("/users/updsettings", apis.UpdateUserSettings)
3928
group.POST("/users/search", apis.SearchByPhone)

0 commit comments

Comments
 (0)