|
@@ -11,7 +11,6 @@ import (
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
-
|
|
|
type SemJsChatRecord struct {
|
|
|
ChatID int64 `gorm:"column:CHAT_ID"`
|
|
|
CreateTime time.Time `gorm:"column:CREATE_TIME"`
|
|
@@ -22,8 +21,8 @@ type SemJsChatRecord struct {
|
|
|
GrUserID string `gorm:"column:gr_user_id"`
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-func getChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
|
+
|
|
|
+func GetChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
|
channel := 7
|
|
|
category := 126
|
|
|
if strings.Contains(chat.ChatURL, "pages") && strings.Split(strings.Split(chat.ChatURL, "?")[1], "=")[0] == "miniapp" {
|
|
@@ -79,7 +78,6 @@ func getChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
|
return channelCategory
|
|
|
}
|
|
|
|
|
|
-
|
|
|
type ResourceAssessment struct {
|
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
|
DataType uint8 `json:"data_type"`
|