package com.ruoyi.ss.storeApply.service.impl;

import com.ruoyi.ss.storeApply.domain.StoreApplyVO;
import com.ruoyi.ss.storeApply.service.StoreApplyValidator;
import org.springframework.stereotype.Service;

/**
 * @author wjh
 * 2024/8/5
 */
@Service
public class StoreApplyValidatorImpl implements StoreApplyValidator {


    /**
     * 申请是否属于用户
     */
    @Override
    public boolean isBelong(StoreApplyVO apply, Long userId) {
        return apply != null && apply.getUserId() != null && apply.getUserId().equals(userId);
    }
}
