- 新增联系人保存与删除逻辑处理 - 新增工厂信息保存逻辑,支持银行、财务等详细信息 - 部门与员工模块接口参数调整,统一使用实体对象返回 - 优化部门与员工的增删改查操作,去除冗余代码 - 统一使用 constant 包管理业务类型常量 - 增加性别转换与整型数组转字符串工具函数 - RPC 注册新增工厂与联系人服务路由 - 调整客户端调用参数结构,增强代码可读性与维护性
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user