修改返回值结构,新增角色菜单接口

This commit is contained in:
2023-06-12 09:47:31 +08:00
parent b9b5d726e7
commit 7e4c9b4a30
7 changed files with 35 additions and 22 deletions
+1
View File
@@ -3,4 +3,5 @@ package controller
// Api api接口
type Api struct {
Basic // 基础数据
Role // 角色数据
}
+6 -6
View File
@@ -40,12 +40,12 @@ func (b *Basic) Login(c *gin.Context) {
}
// 验证验证码
// isValid := utils.VerifyCaptcha(login)
// if !isValid {
// // 验证码错误
// responses.FailWithMessage("验证码错误", c)
// return
// }
isValid := utils.VerifyCaptcha(login)
if !isValid {
// 验证码错误
responses.FailWithMessage("验证码错误", c)
return
}
// 登陆
Basic := service.Basic{}
+10
View File
@@ -0,0 +1,10 @@
package controller
import "github.com/gin-gonic/gin"
type Role struct{}
// GetRoleMenuList 获取角色菜单列表
func (r *Role) GetRoleMenuList(c *gin.Context) {
}