修改返回值结构,新增角色菜单接口
This commit is contained in:
@@ -3,4 +3,5 @@ package controller
|
||||
// Api api接口
|
||||
type Api struct {
|
||||
Basic // 基础数据
|
||||
Role // 角色数据
|
||||
}
|
||||
|
||||
@@ -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{}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package controller
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
type Role struct{}
|
||||
|
||||
// GetRoleMenuList 获取角色菜单列表
|
||||
func (r *Role) GetRoleMenuList(c *gin.Context) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user