feat(ik3cloud): 新增联系人与工厂模块功能
Some checks failed
Go / build (push) Failing after 19s

- 新增联系人保存与删除逻辑处理
- 新增工厂信息保存逻辑,支持银行、财务等详细信息
- 部门与员工模块接口参数调整,统一使用实体对象返回
- 优化部门与员工的增删改查操作,去除冗余代码
- 统一使用 constant 包管理业务类型常量
- 增加性别转换与整型数组转字符串工具函数
- RPC 注册新增工厂与联系人服务路由
- 调整客户端调用参数结构,增强代码可读性与维护性
This commit is contained in:
2025-11-27 11:57:47 +08:00
parent b70ca388cf
commit c5030bf438
13 changed files with 493 additions and 357 deletions

View File

@@ -5,6 +5,7 @@ import (
"ik3cloud"
"ik3cloud/app/config"
"ik3cloud/app/router"
"log"
"strings"
"time"
"unsafe"
@@ -21,12 +22,10 @@ func main() {
defer fn()
}
//query.SetDefault(mysql.Db)
s := server.NewServer()
// 注册中心
ik3cloud.AddRegistryPlugin(s)
//ik3cloud.AddRegistryPlugin(s)
// 设置路由
router.SetRouter(s)
@@ -64,7 +63,7 @@ func main() {
}
*((*time.Time)(ptr)) = location
})
log.Println(config.Config.Server.Port)
if err := s.Serve("tcp", fmt.Sprintf(":%d", config.Config.Server.Port)); err != nil {
return
}