package com.hotent.portal.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hotent.base.controller.BaseController;
import com.hotent.base.model.CommonResult;
import com.hotent.portal.model.PortalWeixinMaterial;
import com.hotent.portal.persistence.manager.PortalWeixinMaterialManager;

import io.swagger.annotations.ApiOperation;

/**
 * 微信永久素材列表 前端控制器
 *
 * @company 广州宏天软件股份有限公司
 * @author 超级管理员
 * @email zhangxw@jee-soft.cn
 * @since 2021-09-07
 */
@RestController
@RequestMapping("/portalWeixinMaterial/v1/")
public class PortalWeixinMaterialController extends BaseController<PortalWeixinMaterialManager, PortalWeixinMaterial> {

	@GetMapping("pullWeixinMaterial")
	@ApiOperation(value="拉取微信公众号中的素材", httpMethod = "GET", notes = "拉取微信公众号中的素材（根据首页栏目中的配置）")
	public CommonResult<String> pullWeixinMaterial() throws Exception{
		return baseService.pullWeixinMaterial();
	}
	
}
	