Browse Source

方法名修改,首字母大写

sunlibo 2 years ago
parent
commit
dc4634fc73
1 changed files with 2 additions and 4 deletions
  1. 2 4
      resourceChannel/resourceChannel.go

+ 2 - 4
resourceChannel/resourceChannel.go

@@ -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 {
+// GetChatChannel 会话渠道归因处理
+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"`            // 1.网课 2.api资源 3.专题页 4.工作台录入 5.后台录入 6 小程序