package org.springblade.modules.member.service;

import org.springblade.core.mp.base.BaseService;
import org.springblade.core.tool.support.Kv;
import org.springblade.modules.member.entity.MemberAccountEntity;

/**
 *  服务类
 *
 * @author Chill
 */
public interface IMemberAccountService extends BaseService<MemberAccountEntity> {

	/**
	 * 微信小程序静默登录
	 * @param clientCode 客户端编码，比如blocktime, dunbar
	 * @param code 微信小程序静默登录生成的code
	 * @return
	 */
	Kv doWxMiniappLogin(String clientCode, String code, String tenantId);

	/**
	 * 微信小程序注册
	 * @param clientCode 客户端编码，比如blocktime, dunbar
	 * @param code 微信小程序静默登录生成的code
	 * @return
	 */
	Kv doWxMiniappRegister(String clientCode, String code);

}
