广告平台(总站长使用)
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 246 B

2 月之前
12345678910111213141516171819
  1. package enum
  2. type SysCfg string
  3. const (
  4. AppName = "app_name"
  5. AppLogo = "app_logo"
  6. )
  7. func (gt SysCfg) String() string {
  8. switch gt {
  9. case AppName:
  10. return "项目名称"
  11. case AppLogo:
  12. return "项目logo"
  13. default:
  14. return "未知"
  15. }
  16. }