package org.springblade.modules.martial.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.martial.pojo.entity.MartialContact;

/**
 * Contact Service Interface
 */
public interface IMartialContactService extends IService<MartialContact> {

	/**
	 * Get contact list by user
	 */
	IPage<MartialContact> getContactList(Long userId, Integer current, Integer size);

	/**
	 * Get contact detail
	 */
	MartialContact getContactDetail(Long id);

	/**
	 * Save contact with default uniqueness handling
	 */
	boolean saveContact(MartialContact contact, Long userId);

}
