package com.microservices.zone.common.service.impl;

import com.microservices.common.core.utils.DateUtils;
import com.microservices.zone.common.domain.ZoneVisits;
import com.microservices.zone.common.mapper.ZoneVisitsMapper;
import com.microservices.zone.common.service.IZoneVisitsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 特色专区用户浏览Service业务层处理
 *
 * @author otto
 * @date 2024-11-26
 */
@Service
public class ZoneVisitsServiceImpl implements IZoneVisitsService {
    @Autowired
    private ZoneVisitsMapper zoneVisitsMapper;

    /**
     * 新增特色专区用户浏览
     *
     * @param zoneVisits 特色专区用户浏览
     * @return 结果
     */
    @Override
    public int insertZoneVisits(ZoneVisits zoneVisits) {
        zoneVisits.setCreateTime(DateUtils.getNowDate());
        return zoneVisitsMapper.insertZoneVisits(zoneVisits);
    }

}
