package v1

import (
	"github.com/gogf/gf/v2/frame/g"

	"kami/api/commonApi"
)

type MenuListReq struct {
	g.Meta `path:"/auth/menu/getList" tags:"菜单信息" method:"get" summary:"获取菜单信息"`
}

type MenuListRes struct {
	g.Meta `json:"application/json"`
	commonApi.CommonDataRes[*SysAuthRule]
}

type MenuCreateReq struct {
	g.Meta `path:"/auth/menu/create" tags:"菜单信息" method:"post" summary:"创建菜单信息"`
	SysAuthRuleReq
}

type MenuCreateRes struct {
	g.Meta `json:"application/json"`
}

type MenuUpdateReq struct {
	g.Meta `path:"/auth/menu/update" tags:"菜单信息" method:"post" summary:"修改菜单信息"`
	SysAuthRuleWithID
}

type MenuUpdateRes struct {
	g.Meta `json:"application/json"`
}

type MenuDeleteReq struct {
	g.Meta `path:"/auth/menu/delete" tags:"菜单信息" method:"delete" summary:"删除菜单信息"`
	commonApi.CommonIntId
}

type MenuDeleteRes struct {
	g.Meta `json:"application/json"`
}
