config file modify

This commit is contained in:
Gordon 2021-12-23 10:04:21 +08:00
parent 1efe753a04
commit 3a01ee9973

View File

@ -165,51 +165,21 @@ type config struct {
}
Notification struct {
GroupCreated struct {
Conversation struct {
ConversationChanged bool `yaml:"conversationChanged"`
UnreadCount bool `yaml:"unreadCount"`
}
OfflinePush struct {
PushSwitch bool `yaml:"switch"`
Title string `yaml:"title"`
Desc string `yaml:"desc"`
Ext string `yaml:"ext"`
}
DefaultTips struct {
Tips string `yaml:"tips"`
}
conversation Conversation `yaml:"conversation"`
offlinePush OfflinePush `yaml:"offlinePush"`
defaultTips DefaultTips `yaml:"defaultTips"`
}
GroupInfoChanged struct {
Conversation struct {
ConversationChanged bool `yaml:"conversationChanged"`
UnreadCount bool `yaml:"unreadCount"`
}
OfflinePush struct {
PushSwitch bool `yaml:"switch"`
Title string `yaml:"title"`
Desc string `yaml:"desc"`
Ext string `yaml:"ext"`
}
DefaultTips struct {
Tips string `yaml:"tips"`
}
conversation Conversation `yaml:"conversation"`
offlinePush OfflinePush `yaml:"offlinePush"`
defaultTips DefaultTips `yaml:"defaultTips"`
}
ApplyJoinGroup struct {
Conversation struct {
ConversationChanged bool `yaml:"conversationChanged"`
UnreadCount bool `yaml:"unreadCount"`
}
OfflinePush struct {
PushSwitch bool `yaml:"switch"`
Title string `yaml:"title"`
Desc string `yaml:"desc"`
Ext string `yaml:"ext"`
}
DefaultTips struct {
Tips string `yaml:"tips"`
}
conversation Conversation `yaml:"conversation"`
offlinePush OfflinePush `yaml:"offlinePush"`
defaultTips DefaultTips `yaml:"defaultTips"`
}
}
Demo struct {
@ -230,6 +200,20 @@ type config struct {
}
}
}
type Conversation struct {
ConversationChanged bool `yaml:"conversationChanged"`
UnreadCount bool `yaml:"unreadCount"`
}
type OfflinePush struct {
PushSwitch bool `yaml:"switch"`
Title string `yaml:"title"`
Desc string `yaml:"desc"`
Ext string `yaml:"ext"`
}
type DefaultTips struct {
Tips string `yaml:"tips"`
}
func init() {
//path, _ := os.Getwd()