fix
zhangqian
2023-12-01 8324f872ef3a4d0c978a9b1d062800c6a1701c12
service/config.go
@@ -17,11 +17,11 @@
}
// GetNetConfig 获取网络配置
func (slf ConfigService) GetNetConfig(id int) (ConfigData *model.NetConfig, err error) {
func (slf ConfigService) GetNetConfig(id uint) (ConfigData *model.NetConfig, err error) {
   return model.NewNetConfigSearch(nil).SetId(id).First()
}
// SetNetConfig 设置网络配置
func (slf ConfigService) SetNetConfig(id int, config *model.NetConfig) error {
func (slf ConfigService) SetNetConfig(id uint, config *model.NetConfig) error {
   return model.NewNetConfigSearch(nil).SetId(id).Save(config)
}