蛋蛋星球 后台端
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.
 
 
 

35 lines
957 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. RedPackageMaxAmount = "red_package_max_amount"
  11. )
  12. func (gt SysCfg) String() string {
  13. switch gt {
  14. case IsAllowAddFriends:
  15. return "是否允许加好友"
  16. case IsAutoAddFriends:
  17. return "是否自动加好友"
  18. case ProhibitAddGroupMembers:
  19. return "是否禁止添加群成员"
  20. case ProhibitRemoveGroupMembers:
  21. return "是否禁止移出群成员"
  22. case ProhibitUpdateGroupName:
  23. return "是否禁止修改群名称"
  24. case ChatSensitiveWords:
  25. return "聊天敏感词"
  26. case RedPackageMaxAmount:
  27. return "红包最大金额"
  28. default:
  29. return "未知"
  30. }
  31. }