蛋蛋星球 后台端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

enum_sys_cfg.go 845 B

4 days ago
12345678910111213141516171819202122232425262728293031
  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. }