package com.seer.teach.mp.admin.controller.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "公众号菜单响应")
@Data
public class AdminMpMenuResp {

    @Schema(description = "菜单ID")
    private Integer id;

    @Schema(description = "公众号账号ID")
    private Integer accountId;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "菜单类型")
    private String type;

    @Schema(description = "菜单KEY值")
    private String menuKey;

    @Schema(description = "菜单URL")
    private String url;

    @Schema(description = "媒体文件ID")
    private String mediaId;

    @Schema(description = "小程序APPID")
    private String appid;

    @Schema(description = "小程序页面路径")
    private String pagepath;

    @Schema(description = "文章ID")
    private String articleId;

    @Schema(description = "父菜单ID")
    private Integer parentId;

    @Schema(description = "菜单JSON配置")
    private String menuConfig;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态：0-禁用，1-启用")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "子菜单列表")
    private List<AdminMpMenuResp> subMenus;
}