kotlin2018

Results 9 issues of kotlin2018

即: master节点: 增、删、改。slave节点: 查

No.1: 生成的 entity/db_entity.go 中,默认导入了 "github.com/go-sql-driver/mysql" "time" 而实际上,entity/db_entity.go 是不需要这些包的。 No.2: 生成的CURD代码中缺少依赖,缺少 entity包,缺少 config包,而实际 import 中并没有导入 entity包,config包。 No.3: 实际删除 assets包,并不影响整个项目生成目标代码,不知是什么原因,这里能详细介绍一下么。 No.4: logic.go 文件中 CreateCURD() 方法内部的方法调用顺序有点问题,所有才出现了 No.2 中的请况。 No.5: 有些方法的的执行好像重复初始化了常量,变量哦。我在看源码的过程中有这种体会。不知事实是不是这样。 No.6: 整体思路很棒,很巧妙的避免了使用反射。可扩展性强,能很方便的将其嵌入到其他组件中。 No.7:...

建议调整生成的代码的位置 即: entity 目录下,只放与实体相关的代码,即:请求参数,响应数据之类的实体。 model 目录下,只放与数据库相关的代码,即:init.go,config.go,数据库表的model,CURD代码。 我决得只保留这两个包比较好。

## Lapce Version ![image](https://user-images.githubusercontent.com/56008171/195497415-5ea2354c-522d-4818-a593-a0a72a6894b8.png) ## System information ![image](https://user-images.githubusercontent.com/56008171/195497588-e2f1e8cf-0e48-4d7f-9c21-c36e7056dd91.png) rustc --version 1.64.0 ## Describe the bug The LSP doesn't appear to be working, I have no squiggly lines, when I press...

C-bug

## What problem does this solve or what need does it fill? A description of why this particular feature should be added. ## What solution would you like? The solution...

C-Enhancement
O-MacOS
O-iOS

## How can Bevy's documentation be improved? Provide a link to the documentation and describe how it could be improved. In what ways is it incomplete, incorrect, or misleading? If...

C-Docs
S-Needs-Triage