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.
22 lines
392 B
22 lines
392 B
|
2 months ago
|
package customer
|
||
|
|
|
||
|
|
import (
|
||
|
|
"server/call"
|
||
|
|
"server/common"
|
||
|
|
"server/pb"
|
||
|
|
)
|
||
|
|
|
||
|
|
func loadConfig() error {
|
||
|
|
c := map[int][]func(*pb.ReloadGameConfig) error{}
|
||
|
|
c[common.ReloadTypeExcel] = []func(*pb.ReloadGameConfig) error{ReloadExcel}
|
||
|
|
call.LoadConfigs(c)
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func ReloadExcel(c *pb.ReloadGameConfig) error {
|
||
|
|
if err := call.LoadGoodsConfig(); err != nil {
|
||
|
|
return err
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|