12345678910111213141516171819202122232425262728293031323334 |
- package main
- import (
- "fmt"
- "jjl-tools/tinodeService/config"
- . "jjl-tools/tinodeService/service"
- )
- func main() {
-
- conf :=config.Conf{
- DbConnect:"dev_jjlrednet:FFH5cv94l3j5gk98@(192.168.204.180:3377)/tinode?charset=utf8&parseTime=True&loc=Local",
- RedisConnect:"192.168.204.183:6379",
- }
- conf.Init()
-
- sub:=new(SubscriptionsService)
- mesList,_:=sub.GetSubsCoutomerListByChatId("22RymOGBDBw")
- fmt.Println("===mesList==", mesList)
-
- topicService := Topics{
- Topic: "p2pvUxuIC8HthonmVuGVFAh0A",
- Sid: "",
- CreateTime: "",
- PageSize: 10,
- }
- list,_:=topicService.GetMessageList()
- fmt.Println("===list==", list)
-
- timeLists :=topicService.GetChatRecordStartEndTime()
- fmt.Println("===timeLists==", timeLists)
- }
|