|
|
|
@ -53,7 +53,7 @@ func PageRoleInfo(c *gin.Context) {
|
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Success: r.Success,
|
|
|
|
|
Message: r.Message,
|
|
|
|
|
List: CommonUtil.ConvertStringArrayToArray(r.List),
|
|
|
|
|
List: CommonUtil.ConvertJsonStringToMapArray(r.List),
|
|
|
|
|
Count: r.Count,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -72,7 +72,7 @@ func PageRoleInfo(c *gin.Context) {
|
|
|
|
|
// @X-Sort [2]
|
|
|
|
|
func GetRoleInfo(c *gin.Context) {
|
|
|
|
|
//角色ID
|
|
|
|
|
roleId := c.Query("menuId")
|
|
|
|
|
roleId := c.Query("roleId")
|
|
|
|
|
r, err := BaseRoleService.GetBaseRoleInfo(roleId)
|
|
|
|
|
if err != nil {
|
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
@ -84,8 +84,7 @@ func GetRoleInfo(c *gin.Context) {
|
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Success: r.Success,
|
|
|
|
|
Message: r.Message,
|
|
|
|
|
List: CommonUtil.ConvertStringArrayToArray(r.List),
|
|
|
|
|
Count: r.Count,
|
|
|
|
|
List: CommonUtil.ConvertJsonStringToMapArray(r.List),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|