9 changed files with 137 additions and 82 deletions
			
			
		| @ -1,26 +1,26 @@ | |||
| # common_models  通用结构体模块 | |||
| 
 | |||
| ### 开发语言和版本 | |||
| golang ,版本 go1.22.0 | |||
| golang ,版本 go1.23.1 | |||
| 
 | |||
| ### 平台支持 | |||
| 安心云4.0 | |||
| 
 | |||
| ### 使用方式:   | |||
| 1. 设置 go 环境   | |||
| set  GOPRIVATE=gitea.ngaiot.com  | |||
| set  GOPRIVATE=gitea.anxinyun.cn  | |||
| 2. 查询go 版本   | |||
|  go list -m -versions  gitea.anxinyun.cn/container/common_models   | |||
| 如若 GOPRIVATE=gitea.ngaiot.com 生效,则会返回 common_models 的版本信息。   | |||
| 如若无版本信息返回,有可能是没有 DevOps 的权限,也有可能环境变量设置没有生效。 | |||
| 如若 GOPRIVATE=gitea.anxinyun.cn 生效,则会返回 common_models 的版本信息。   | |||
| 如若无版本信息返回,有可能是没有 container 的权限,也有可能环境变量设置没有生效。 | |||
| 
 | |||
| 异常情况处理:   | |||
| 1. 无 https://gitea.anxinyun.cn/container 访问权限,可以联系下管理员。 | |||
| 1. 无 https://gitea.anxinyun.cn/container 访问权限,可以联系下管理员(刘歆毅)。 | |||
| 2. 环境变量设置不生效   | |||
| 解决方法,在GoLand工具中进行设置:   | |||
| 1)打开 Settings   | |||
| 2)Go > GOROOT,Download Go SDK   | |||
| 3)Go > Go Modules,设置环境变量 GOPRIVATE=gitea.ngaiot.com | |||
| 3)Go > Go Modules,设置环境变量 GOPRIVATE=gitea.anxinyun.cn | |||
| 
 | |||
| ### 依赖包管理 | |||
| common_models  如若有修改,必须需要同步升级  common_utils、et-go | |||
| @ -1,5 +1,10 @@ | |||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | |||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | |||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | |||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | |||
| github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= | |||
| github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= | |||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= | |||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | |||
| gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= | |||
| gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | |||
|  | |||
					Loading…
					
					
				
		Reference in new issue