package com.zhongshu.card.server.core.service.projectAbout;

import com.zhongshu.card.client.model.paySetting.paySetting.PayShareListModel;
import com.zhongshu.card.server.core.dao.projectAbout.PayShareListDao;
import com.zhongshu.card.server.core.domain.paySetting.PayShareList;
import com.zhongshu.card.server.core.service.base.SuperService;
import lombok.Data;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author TRX
 * @date 2024/9/27
 */
@Data
@Service
public class PayShareListService extends SuperService {

    @Autowired
    private PayShareListDao payShareListDao;

    public PayShareListModel toModel(PayShareList entity) {
        PayShareListModel model = null;
        if (ObjectUtils.isNotEmpty(entity)) {
            model = new PayShareListModel();
            BeanUtils.copyProperties(entity, model);
        }
        return model;
    }

}
