mly

Results 9 issues of mly

Add Golang syntax support, thanks a log~~

按照[这个示例](https://doc.go-admin.dev/guide/intro/tutorial02.html#%E8%A1%A8%E7%BB%93%E6%9E%84%E5%AF%BC%E5%85%A5)生成代码之后,发现 `app/admin/service/dto/article.go`内容生成的有问题,会导致请求这个示例路径404:`http://127.0.0.1:8000/api/v1/article?pageIndex=1&pageSize=10&beginTime=&endTime=` 如下图: ![image](https://user-images.githubusercontent.com/5624855/140469049-aad5ecf0-5a4d-41a2-9972-3c34a8a5c07f.png) __解决方案:__ 修改`template/v4/dto.go.template:18`文件,将最后的一个`-`去掉,保证了time包会"追加"到上一个包的后面。 ![image](https://user-images.githubusercontent.com/5624855/140695950-25927d13-740f-41c1-91f1-c77434701e38.png) --------------------------------- 这个文件也缺少import time包:`app/admin/service/article.go` ![image](https://user-images.githubusercontent.com/5624855/140471015-4e9358a8-b312-49ab-8310-2c2dbafd11c6.png)

Inactive

`e.Error`是个函数,执行`go vet`会有提示的: ``` bash common/apis/api.go:30:14: Errorf format %v arg e.Error is a func value, not called ``` ![image](https://user-images.githubusercontent.com/5624855/140469859-72dd7a1f-d903-4246-a6a6-73dca052f607.png)

Inactive

### 问题描述 [详细地描述问题,让大家都能理解] RT.例如,我有个输入框``,想要触发`onChange`事件时请求后台的某个api 问题是: - 如何给这个field添加onChange事件,`formList.AddField`貌似没有onChange的方法,所以,想问一下如何实现? ### 示例代码 [如果有必要,展示代码,线上示例,或仓库] ### 其他信息 [如截图等其他信息可以贴在这里]

### 问题描述 [详细地描述问题,让大家都能理解] 最近更新了go-admin代码,发现程序不能启动了,提示的错误信息是`plugin_name`不存在,对比git log,发现`admin.sql`有改动 - `goadmin_menu`:添加了`plugin_name`、`uuid`这俩字段 - `goadmin_role_menu`、`goadmin_role_permissions`、`goadmin_role_users`、`goadmin_user_permissions`移除了主键 整理了一下,涉及如下改动,不确定还有没有其他的改动了: ```sql # goadmin_menu alter table `goadmin_menu` add `plugin_name` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' after `header`; alter table `goadmin_menu`...

https://github.com/yangchuansheng/prometheus-handbook/blob/master/2-concepts/metric_types.md#guage%E4%BB%AA%E8%A1%A8%E7%9B%98 guage -> gauge

用这个插件有段时间了,感谢作者! 有个小需求,期望可以支持Golang语法高亮支持,辛苦~~

This would make the code more readable

After turning down a page and exiting the tig interface, the terminal will retain part of the list data. Not sure if it's a bug