feat:完善项目信息
This commit is contained in:
20
app/api/admin/controller/tenant/struct.go
Normal file
20
app/api/admin/controller/tenant/struct.go
Normal file
@ -0,0 +1,20 @@
|
||||
package tenant
|
||||
|
||||
// InstanceParamsForProtocol 协议参数
|
||||
type InstanceParamsForSetting struct {
|
||||
Protocol []uint
|
||||
MaxDevices, MaxCustomer int
|
||||
}
|
||||
|
||||
// NewProtocol 消息协议
|
||||
func (c *InstanceParamsForSetting) NewProtocol() uint {
|
||||
// &(与):0&0=0 0&1=0 1&0=0 1&1=1
|
||||
// |(或):0&0=0 0&1=1 1&0=1 1&1=1
|
||||
// ^(非):0^0=0 0&1=1 1^0=1 1^1=0
|
||||
var protocol uint
|
||||
|
||||
for i := 0; i < len(c.Protocol); i++ {
|
||||
|
||||
}
|
||||
return protocol
|
||||
}
|
Reference in New Issue
Block a user