package com.hotent.uc.controller;


import com.hotent.base.annotation.ApiGroup;
import com.hotent.base.constants.ApiGroupConsts;
import com.hotent.base.controller.BaseController;
import com.hotent.uc.manager.DingApiManager;
import com.hotent.uc.manager.ExtOrgLogManager;
import com.hotent.uc.model.OrgExternalSynLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @description  welcomePage 欢迎页接口
 * @author  yangzibin
 * @date    2024/9/4 14:06
 * @return
 */
@RestController
@RequestMapping("/uc/welcomePage/")
@Api(tags="欢迎页接口")
@ApiGroup(group= {ApiGroupConsts.GROUP_UC})
public class WelcomePageController extends BaseController<ExtOrgLogManager, OrgExternalSynLog> {
    @Autowired
	private DingApiManager dingApiManager;

	@RequestMapping(value = "getWelcomePageData", method = RequestMethod.GET, produces = { "application/json; charset=utf-8" })
	@ApiOperation(value = "获取欢迎页数据", httpMethod = "GET", notes = "获取欢迎页数据")
	public Map<String,Object> getWelcomePageData(@RequestParam(value = "orgId", required = true) String orgId )
			throws Exception {
		return dingApiManager.getWelcomeDage(orgId);
	}





}
