package com.playlet.web.service.app.impl;

import com.playlet.system.domain.PublicUserRecord;
import com.playlet.system.service.IPlayletPublicDetailService;
import com.playlet.system.service.IPublicUserRecordService;
import com.playlet.web.service.app.PublicUserRecordAppService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PublicUserRecordAppServiceImpl implements PublicUserRecordAppService {

    private final IPublicUserRecordService iPublicUserRecordService;

    private final IPlayletPublicDetailService iPlayletPublicDetailService;

    @Override
    public void addRecord(PublicUserRecord userRecord) {
        iPublicUserRecordService.insertPublicUserRecord(userRecord);
    }

    @Override
    public void updateRecord(PublicUserRecord userRecord) {
        iPublicUserRecordService.updateById(userRecord);
    }
}
