gf
gf copied to clipboard
GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
以pgsql的decimal类型举例 被映射到了golang float64 但是golang 的float64是用8个字节来储存的(至多能精确表达 2 ** 64个数字) 而pgsql的decimal 是可变长的(可以表达的数字几乎不限量【小数点前 131072 位;小数点后 16383 位】) float64至多能精确表达:18446744073709552000个数字 但是很明显decimal能表达的数字不止这么点。。。。 这明显不是计算时才有问题了 例如:数据库里面有一个大数:88888888888888888888888888888 但是用gf orm去取出来就变成了88888888888888900000000000000 再例如 api提交了一个大数:88888888888888888888888888888 但是保存到数据库里的就是88888888888888900000000000000了 详见:[https://www.runoob.com/postgresql/postgresql-data-type.html ](https://www.runoob.com/postgresql/postgresql-data-type.html) 解决方案: 1. 将decimal类型用golang的string类型承载(这是最轻松的方案) 2. 将decimal类型用...
### 1. What version of `Go` and system type/arch are you using? go version go1.16.2 windows/amd64 ### 2. What version of `GoFrame` are you using? github.com/gogf/gf/v2 v2.0.0-rc3 ### 3. Can...
support openapi path security. **note: the security schema type only support http and apiKey;not support oauth2 and openIdConnect. multi schema separate with comma, e.g. `security: "apiKey1, apiKey2"`** usage: first: set...
2.1版本gf build命令没有进行pack打包 (1)gf build没有自动执行pack (2)手动pack文件到internal/packed/data.go,然后执行gf build,将编译后的可执行文件在同环境的新设备运行,结果无法运行,原因是manifest和resource的文件找不到。 config.yaml配置如下 ``` gfcli: build: name: "gfCms" arch: "amd64" system: "linux" mod: "none" cgo: 0 pack: "manifest/config,manifest/i18n,resource/public,resource/template" version: "" output: "./bin" extra: "" ```
### 1. What version of `Go` and system type/arch are you using? go 1.18 win/amd64 ### 2. What version of `GoFrame` are you using? 2.1.0 ### 3. Can this issue...
### 1. What version of `Go` and system type/arch are you using? go1.17.6 darwin/amd64 ### 2. What version of `GoFrame` are you using? v2.0.6 I'm using TreeMap intensively in my...
### 1. What version of `Go` and system type/arch are you using? go1.18.3 windows/amd64 ### 2. What version of `GoFrame` are you using? v2.1.1 ### 3. Can this issue be...
### 1. What version of `Go` and system type/arch are you using? go1.18.3 windows/amd64 ### 2. What version of `GoFrame` are you using? v2.1.1 ### 3. Can this issue be...