Kevin Wan
7618139dad
refactor ( #977 )
3 years ago
anqiansong
3203f8e06b
Fix issues ( #965 )
3 years ago
chenquan
b71ac2042a
Add a test case for database code generation `tool` ( #961 )
3 years ago
anqiansong
189721da16
Fix issues ( #931 )
...
* fix #929
* fix #925
* add test case
* update model README
* fix #929
* fix #929
* fix #929
* refactor dir
* Adding todo comments
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
b2fea65faa
Optimize model naming ( #910 )
...
* add unit test
* fix #907
* format code
* format code
* format code
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
a1fe8bf6cd
fix missing `updateMethodTemplateFile` ( #924 )
3 years ago
anqiansong
dc43430812
optimize grpc generation env check ( #900 )
...
* optimize grpc generation env check
* optimize grpc generation env check
* format code
* fix postgresql data type convert error
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
69935c1ba3
refactor goctl, fix golint issues ( #903 )
3 years ago
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
3 years ago
Kevin Wan
02adcccbf4
format code ( #884 )
3 years ago
toutou_o
a5e1d0d0dc
add correct example for pg's url ( #857 )
3 years ago
anqiansong
9f4a882a1b
fix issue #831 ( #850 )
...
* fix issue #831
* fix typo
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
cb7b7cb72e
fix issue #836 ( #849 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
089cdaa75f
Feature model postgresql ( #842 )
...
* Support postgresql generate
* Update template Var
* Support to generate postgresql model
* Support to generate postgresql model
* Update template
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
fangjianwei
476026e393
Added database prefix of cache key. ( #835 )
3 years ago
Kevin Wan
e47079f0f4
go format with extra rules ( #821 )
3 years ago
anqiansong
9b2a279948
Fix issues: #725 , #740 ( #813 )
...
* Fix issues: #725 , #740
* Update filed sort
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
ea4f680052
Fix issue #747 ( #765 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
453f949638
replace cache key with colon ( #746 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
Kevin Wan
f300408fc0
fix golint issues, and optimize code ( #705 )
4 years ago
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
4 years ago
anqiansong
ea01cc78f0
Optimize model nl ( #686 )
4 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 years ago
anqiansong
888551627c
optimize code ( #579 )
...
* optimize code
* optimize returns & unit test
4 years ago
anqiansong
dda7666097
Feature mongo gen ( #546 )
...
* add feature: mongo code generation
* upgrade version
* update doc
* format code
* update update.tpl of mysql
4 years ago
anqiansong
60c7edf8f8
fix spelling ( #551 )
4 years ago
Kevin Wan
f01472c9ea
fix golint issues ( #535 )
4 years ago
Kevin Wan
af531cf264
fix golint issues ( #533 )
4 years ago
anqiansong
dd393351cc
patch 1.1.5 ( #530 )
4 years ago
anqiansong
d894b88c3e
feature 1.1.5 ( #411 )
4 years ago
kingxt
e6ef1fca12
Code optimized ( #523 )
...
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
* add more comment
* add comment
* add comment
* add comments for rpc tool
* add comments for model tool
* add comments for model tool
* add comments for model tool
* add comments for config tool
* add comments for config tool
* add comments
* add comments
* add comments
* add comments
* add comment
* remove rpc main head info
* add comment
* optimized
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
kingxt
f98c9246b2
Code optimized ( #493 )
4 years ago
Kevin Wan
211f3050e9
fix golint issues ( #459 )
4 years ago
Kevin Wan
03b5fd4a10
fix golint issues ( #458 )
4 years ago
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
Kevin Wan
42883d0899
fix golint issues, redis methods ( #455 )
4 years ago
Kevin Wan
06f6dc9937
fix golint issues, package comments ( #454 )
4 years ago
Kevin Wan
9b0625bb83
fix golint issues ( #450 )
4 years ago
Kevin Wan
50fbdbcfd7
update readme ( #390 )
4 years ago
Kevin Wan
eca4ed2cc0
format code ( #386 )
4 years ago
文杰
3285436f75
f-fix spell ( #381 )
...
Co-authored-by: chenwenjie <chenwenjie@zzstc.cn>
4 years ago
anqiansong
6c624a6ed0
Feature model fix ( #362 )
...
* fix sql builderx adding raw string quotation marks incompatibility bug
* add unit test
* remove comments
* fix sql builderx adding raw string quotation marks incompatibility bug
4 years ago
anqiansong
a3b525b50d
feature model fix ( #296 )
...
* add raw stirng quote for sql field
* remove unused code
4 years ago
Kevin Wan
da8f76e6bd
add category docker & kube ( #276 )
4 years ago
Kevin Wan
65ee877236
refactor & format code ( #255 )
4 years ago
songmeizi
4d53045c6b
improve data type conversion ( #236 )
...
* improve data type conversion
* update doc
4 years ago
Keson
6e57f6c527
feature model interface ( #222 )
...
* make variable declaration more concise
* add model interface
* optimize interface methods
* fix: go test failed
* warp returns
* optimize
4 years ago
kingxt
b9ac51b6c3
feature: file namestyle ( #223 )
...
* add api filename style
* new feature: config.yaml
* optimize
* optimize logic generation
* check hanlder valid
* optimize
* reactor naming style
* optimize
* optimize test
* optimize gen middleware
* format
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
Keson
24fb29a356
patch model&rpc ( #207 )
...
* change column to read from information_schema
* reactor generate mode from datasource
* reactor generate mode from datasource
* add primary key check logic
* resolve rebase conflicts
* add naming style
* add filename test case
* resolve rebase conflicts
* reactor test
* add test case
* change shell script to makefile
* update rpc new
* update gen_test.go
* format code
* format code
* update test
* generates alias
4 years ago
Keson
48f4154ea8
update doc ( #193 )
4 years ago
Keson
e76f44a35b
reactor rpc ( #179 )
...
* reactor rpc generation
* update flag
* update command
* update command
* update unit test
* delete test file
* optimize code
* update doc
* update gen pb
* rename target dir
* update mysql data type convert rule
* add done flag
* optimize req/reply parameter
* optimize req/reply parameter
* remove waste code
* remove duplicate parameter
* format code
* format code
* optimize naming
* reactor rpcv2 to rpc
* remove new line
* format code
* rename underline to snake
* reactor getParentPackage
* remove debug log
* reactor background
4 years ago
kevin
b144a2335c
update bookstore example for generation prototype
4 years ago
Keson
607fc3297a
model template fix ( #169 )
...
* replace quote
* rpc disable override main.go
* reactor template
* add model flag -style
* add model flag -style
* reactor model template name of error
4 years ago
Keson
2b7545ce11
spell fix ( #167 )
4 years ago
Keson
60925c1164
fix bug: generate incomplete model code in case findOneByField ( #160 )
...
* fix bug: generate incompletely in case findOneByField
* code break line
* add test
* revert command.go
* add test
* remove incorrect test
4 years ago
Keson
c9494c8bc7
model support globbing patterns ( #153 )
...
* model support globbing patterns
* optimize model
* optimize model
* format code
4 years ago
Keson
41964f9d52
gozero template ( #147 )
...
* model/rpc generate code from template cache
* delete unused(deprecated) code
* support template init|update|clean|revert
* model: return the execute result for insert and update operation
* // deprecated: containsAny
* add template test
* add default buildVersion
* update build version
4 years ago
kevin
dfe6e88529
use goctl template to generate all kinds of templates
4 years ago
kevin
94645481b1
fix golint issues
4 years ago
kevin
f904710811
support api templates
4 years ago
Keson
7d4a548d29
fix: template cache key ( #121 )
4 years ago
Keson
7e61555d42
Gozero sqlgen patch ( #119 )
...
* merge upstream
* optimize insert logic
* reactor functions
4 years ago
miaogaolin
68335ada54
rename file and function name ( #74 )
4 years ago
Sergey Cheung
21e811887c
Markdown lint ( #58 )
...
* markdown linter
* format markdown docs
* format exiting markdown docs
4 years ago
Keson
d12e9fa2d7
add model&rpc doc ( #62 )
4 years ago
miaogaolin
ce5961a7d0
fix goctl model ( #61 )
4 years ago
kevin
8dd93d59a0
refactor code
4 years ago
Keson
3a4e1cbb33
fix bug: miss time import ( #36 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* optimize gomod cache
* add README.md
* format error
* reactor templatex.go
* update project.go & README.md
* fix bug: miss time import
4 years ago
kevin
6c4a4be5d2
update shorturl doc
4 years ago
kevin
f411178a4f
refine rpc generator
4 years ago
Keson
db16115037
rpc service generation ( #26 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* update usage
* fixed env prepare for project in go path
* optimize gomod cache
* add README.md
* format error
* reactor templatex.go
* remove waste code
4 years ago
kevin
77e23ad65d
add quick example
4 years ago
kevin
267a283328
reorg imports
4 years ago
Keson
db83843558
gocctl model v20200819 ( #18 )
...
* rename snake、came method
* new: generate model from data source
* add change log md
* update model doc
* update doc
* beauty code
4 years ago
kevin
e79c42add1
add go report badge
4 years ago
Keson
d21d770b5b
goctl model reactor ( #15 )
...
* reactor sql generation
* reactor sql generation
* add console & example
* optimize unit test & add document
* modify default config
* remove test file
* Revert "remove test file"
This reverts commit 81041f9e
* fix stringx.go & optimize example
* remove unused code
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kim
121323b8c3
goctl added
4 years ago