package com.pig4cloud.pig.daemon.quartz.task;


import com.pig4cloud.pig.common.core.util.R;
import com.pig4cloud.pig.daemon.quartz.constants.PigQuartzEnum;
import com.pig4cloud.pig.marketing.api.feign.RemoteMarketingService;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * @author: lwh
 * @date: 2025-09-07
 * @description: 营销模块定时任务
 */
@Slf4j
@Component("marketing")
public class MktModeTask {

	@Autowired
	private RemoteMarketingService marketingAppsService;

	// 同步应用列表
	@SneakyThrows
	public String asyncAppList() {
		R r = marketingAppsService.syncedAppList();
		return PigQuartzEnum.JOB_LOG_STATUS_SUCCESS.getType();
	}
}
