蛋蛋星球 后台端
 
 
 
 

32 lines
845 B

  1. package enum
  2. type SysCfg string
  3. const (
  4. IsAllowAddFriends = "is_allow_add_friends"
  5. IsAutoAddFriends = "is_auto_add_friends"
  6. ProhibitAddGroupMembers = "prohibit_add_group_members"
  7. ProhibitRemoveGroupMembers = "prohibit_remove_group_members"
  8. ProhibitUpdateGroupName = "prohibit_update_group_name"
  9. ChatSensitiveWords = "chat_sensitive_words"
  10. )
  11. func (gt SysCfg) String() string {
  12. switch gt {
  13. case IsAllowAddFriends:
  14. return "是否允许加好友"
  15. case IsAutoAddFriends:
  16. return "是否自动加好友"
  17. case ProhibitAddGroupMembers:
  18. return "是否禁止添加群成员"
  19. case ProhibitRemoveGroupMembers:
  20. return "是否禁止移出群成员"
  21. case ProhibitUpdateGroupName:
  22. return "是否禁止修改群名称"
  23. case ChatSensitiveWords:
  24. return "聊天敏感词"
  25. default:
  26. return "未知"
  27. }
  28. }