From eba4eb850f0ecfb5839395aa125955ceaa2a454f Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 19 十月 2023 16:39:07 +0800 Subject: [PATCH] Merge branch 'feat-serf' --- service/config.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/config.go b/service/config.go index 3378b2a..e1fdc57 100644 --- a/service/config.go +++ b/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) } -- Gitblit v1.8.0