command_platformconfig.go 365 B

123456789101112131415161718
  1. package client
  2. import (
  3. platformconfig "bet24.com/servers/micros/platformconfig/proto"
  4. )
  5. // 获取单个字段
  6. func GetPlatformConfig(key string) string {
  7. return platformconfig.GetConfig(key)
  8. }
  9. func GetPlatformConfigList() []string {
  10. return platformconfig.GetConfigList()
  11. }
  12. func SetPlatformConfig(key, value string) {
  13. platformconfig.SetConfig(key, value)
  14. }