Drop view (#1137)
* sys_initdb_mysql/pgsql.go: 优化流程, 创建database前,如果dbname为空直接返回 * 删除视图逻辑 * 摘除视图初始化逻辑 * 移除dialog废弃的title标签修改为header * 解决部分浏览器登录后遮罩不消失的bug * 修复角色菜单逻辑 * element 2.2.2=>2.2.5 * 修复插件模板 * 调整自动插件模板到插件功能下 * 切换角色切换至角色首页 Co-authored-by: Lyon.Nee <lyon.nee@outlook.com>
This commit is contained in:
committed by
GitHub
co-authored by
Lyon.Nee
parent
8504e9bf74
commit
091f83ff59
@@ -17,11 +17,11 @@ type {{ .PlugName}}Api struct{}
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"发送成功"}"
|
||||
// @Router /{{ .RouterGroup}}/routerName [post]
|
||||
func (p *{{ .PlugName}}Api) ApiName(c *gin.Context) {
|
||||
{{- if .HasRequest}}
|
||||
{{ if .HasRequest}}
|
||||
var plug model.Request
|
||||
_ = c.ShouldBindJSON(&plug)
|
||||
{{ end -}}
|
||||
if {{- if .HasResponse }} res, {{ end -}} err:= service.ServiceGroupApp.PlugService({{ if .HasRequest }}plug{{ end -}}); err != nil {
|
||||
{{ end }}
|
||||
if {{ if .HasResponse }} res, {{ end }} err:= service.ServiceGroupApp.PlugService({{ if .HasRequest }}plug{{ end -}}); err != nil {
|
||||
global.GVA_LOG.Error("失败!", zap.Error(err))
|
||||
response.FailWithMessage("失败", c)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user