fix(region): network_ip_macs allow update ip and mac

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
wanyaoqi
2023-01-11 19:50:49 +08:00
parent d8ce42f34c
commit dc6ba455f5
+2 -2
View File
@@ -49,9 +49,9 @@ type SNetworkIpMac struct {
NetworkId string `width:"36" charset:"ascii" nullable:"false" list:"user" index:"true" create:"required"`
// MAC地址
MacAddr string `width:"32" charset:"ascii" nullable:"false" list:"user" index:"true" create:"required"`
MacAddr string `width:"32" charset:"ascii" nullable:"false" list:"user" index:"true" update:"user" create:"required"`
// IPv4地址
IpAddr string `width:"16" charset:"ascii" nullable:"false" list:"user" index:"true" create:"required"`
IpAddr string `width:"16" charset:"ascii" nullable:"false" list:"user" index:"true" update:"user" create:"required"`
}
func (manager *SNetworkIpMacManager) NetworkMacAddrInUse(networkId, macAddr string) (bool, error) {