feat mysql

This commit is contained in:
2025-12-18 18:17:41 +08:00
parent da91cff056
commit 55c5d4cc18
44 changed files with 1460 additions and 338 deletions

View File

@@ -14,7 +14,7 @@ import (
)
type IService interface {
Init(addr string, port int)
Init(addr string, port int32)
Close()
}
@@ -29,7 +29,7 @@ type Base struct {
wg *sync.WaitGroup
}
func (s *Base) Init(addr string, port int) {
func (s *Base) Init(addr string, port int32) {
s.wg = &sync.WaitGroup{}
s.wg.Add(1)
s.SID = utils.SnowflakeInstance().Generate().Int64()