package cn.com.poc.message.service.impl;

import cn.com.poc.message.entity.SoftwareCopyRightMessage;
import cn.com.poc.message.service.SoftwareCopyRightProduceService;
import cn.com.poc.message.topic.SoftwareCopyRightTopic;
import cn.com.yict.framemax.core.service.BaseService;
import cn.com.yict.framemax.tumbleweed.client.annotation.Producer;
import cn.com.yict.framemax.tumbleweed.constant.PublishPoint;
import org.springframework.stereotype.Service;

/**
 * @author alex.yao
 * @date 2025/12/26
 */
@Service
public class SoftwareCopyRightProduceServiceImpl implements SoftwareCopyRightProduceService {

    /**
     * 提交生成文档任务
     *
     * @param message
     * @return
     */
    @Producer(topic = SoftwareCopyRightTopic.SUBMIT_SOFTWARE_COPYRIGHT_TASK)
    public SoftwareCopyRightMessage submitTask(SoftwareCopyRightMessage message) {
        return message;
    }

    @Override
    @Producer(topic = SoftwareCopyRightTopic.UPDATE_TASK_STATUS, publishPoint = PublishPoint.PUBLISH_REAL_TIME)
    public SoftwareCopyRightMessage updateStatus(SoftwareCopyRightMessage message) {
        return message;
    }
}
