package com.zhongshu.card.server.core.controller.tempMenus;

import com.github.microservice.auth.client.constant.AuthConstant;
import com.github.microservice.auth.security.annotations.ResourceAuth;
import com.github.microservice.auth.security.type.AuthType;
import com.github.microservice.net.ResultContent;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("platMenu")
@Tag(name = "平台的菜单配置")
@Hidden
public class PlatformMenuController {

    @ResourceAuth(value = "platProjectManager", type = AuthType.Platform, remark = "园区项目管理_项目列表_10_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platProjectManager", method = {RequestMethod.GET})
    public ResultContent platProjectManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platOrgManager", type = AuthType.Platform, remark = "机构管理_机构列表_20_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platOrgManager", method = {RequestMethod.GET})
    public ResultContent platOrgManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platUserManager", type = AuthType.Platform, remark = "用户管理_用户列表_30_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platUserManager", method = {RequestMethod.GET})
    public ResultContent platUserManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platOpenAPIAppManager", type = AuthType.Platform, remark = "OpenAPI_应用管理_40_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "openAPIAppManager", method = {RequestMethod.GET})
    public ResultContent openAPIAppManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platOpenAPIInterface", type = AuthType.Platform, remark = "OpenAPI_接口管理_50_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "openAPIInterface", method = {RequestMethod.GET})
    public ResultContent openAPIInterface() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platOpenAPILog", type = AuthType.Platform, remark = "OpenAPI_日志管理_60_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "openAPILog", method = {RequestMethod.GET})
    public ResultContent openAPILog() {
        return ResultContent.buildSuccess();
    }


    @ResourceAuth(value = "platRoleManager", type = AuthType.Platform, remark = "权限管理_角色权限_70_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platRoleManager", method = {RequestMethod.GET})
    public ResultContent platRoleManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platPayManager", type = AuthType.Platform, remark = "支付管理_支付管理_80_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platPayManager", method = {RequestMethod.GET})
    public ResultContent platPayManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platSceneManager", type = AuthType.Platform, remark = "场景_应用场景管理_85_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platSceneManager", method = {RequestMethod.GET})
    public ResultContent platSceneManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platSettingManager", type = AuthType.Platform, remark = "系统设置_平台基本信息_90_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platSettingManager", method = {RequestMethod.GET})
    public ResultContent platSettingManager() {
        return ResultContent.buildSuccess();
    }

    @ResourceAuth(value = "platSettingPlatform", type = AuthType.Platform, remark = "系统设置_模板配置_100_Menu")
    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
    @ResourceAuth(value = "user", type = AuthType.User)
    @RequestMapping(value = "platSettingPlatform", method = {RequestMethod.GET})
    public ResultContent platSettingPlatform() {
        return ResultContent.buildSuccess();
    }

}
