/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.gateway.shop_gateway.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.core.tool.api.R;
import org.springblade.gateway.shop_gateway.entity.dto.ShopAuditDto;
import org.springblade.gateway.shop_gateway.entity.vo.BalanceAccountInfoVO;
import org.springblade.ldt.bills.entity.WithdrawRec;
import org.springblade.ldt.notice.entity.NoticeManagementContent;
import org.springblade.ldt.shop.entity.Shop;

/**
 * 服务类
 *
 * @author BladeX
 * @since 2021-08-30
 */
public interface IAppShopService extends IService<Shop> {

	/**
	 * 商户提交审核
	 *
	 * @param shopAuditDto
	 */
	void submitAudit(ShopAuditDto shopAuditDto);


	/**
	 * 获取tenantId
	 *
	 * @param shopId
	 * @return
	 */
	String getTenantId(Long shopId);

	R configApp(Shop shop);

	/**
	 * @param withdrawRec: 提现信息
	 * @Return void
	 * @Author July
	 * @Description 用户余额提现
	 * @Date 2021/10/19 16:14
	 */
	Long userBalanceWithdraw(WithdrawRec withdrawRec);

	/**
	 * 查询商户余额
	 *
	 * @param shopId
	 * @return
	 */
	BalanceAccountInfoVO queryBalance(Long shopId);

	/**
	 * @param withdrawRec: 提现信息
	 * @Return Long
	 * @Author July
	 * @Description 用户积分提现
	 * @Date 2021/10/22 9:22
	 */
	Long userPointWithdraw(WithdrawRec withdrawRec);

	/**
	 * 商户发布公告
	 * @param noticeContent
	 * @return
	 */
    Boolean submitNotice(NoticeManagementContent noticeContent);
}
