set infra

This commit is contained in:
vanilia
2025-11-13 09:57:10 +07:00
parent 94ce6bd5ee
commit ebc2ca5659
24 changed files with 843 additions and 105 deletions

No files matched your search

+6 -2
View File
@@ -7,8 +7,12 @@ import (
func SetConfig() {
a.ParseSingleCfg(&O)
if O.Host == "" || O.Target == "" {
panic("sync url config host or target empty")
//if O.Host == "" || O.Target == "" {
// panic("sync url config host or target empty")
//}
if O.BaseUrl == "" {
panic("config bpjs base url empty")
}
lo.I.Println("sync url config loaded, status: DONE!!")
}
+3 -2
View File
@@ -3,6 +3,7 @@ package synccfg
var O SyncUrlCfg = SyncUrlCfg{}
type SyncUrlCfg struct {
Target string `yaml:"target"`
Host string `yaml:"host"`
Target string `yaml:"target"`
Host string `yaml:"host"`
BaseUrl string `yaml:"baseUrl"`
}