|
|
@@ -1,15 +1,13 @@
|
|
|
package com.ylx.massage.service;
|
|
|
|
|
|
import java.util.List;
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.ylx.common.core.domain.model.LoginUser;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
+import com.ylx.massage.domain.MaProject;
|
|
|
import com.ylx.massage.domain.MaTechnician;
|
|
|
-import com.ylx.massage.domain.dto.MassageMerchantRecommendDto;
|
|
|
-import com.ylx.massage.domain.dto.MaTechnicianMerchantAddDTO;
|
|
|
-import com.ylx.massage.domain.dto.MaTechnicianMerchantQueryDTO;
|
|
|
+import com.ylx.massage.domain.dto.MaProjectSaveDto;
|
|
|
import com.ylx.massage.domain.vo.MaTechnicianAppAddVo;
|
|
|
-import com.ylx.massage.domain.vo.MaTechnicianMerchantListVO;
|
|
|
-import com.ylx.massage.domain.vo.MerchantVo;
|
|
|
+import com.ylx.project.domain.Project;
|
|
|
|
|
|
/**
|
|
|
* 技师Service接口
|
|
|
@@ -17,8 +15,14 @@ import com.ylx.massage.domain.vo.MerchantVo;
|
|
|
* @author ylx
|
|
|
* @date 2024-03-22
|
|
|
*/
|
|
|
-public interface IMaTechnicianService
|
|
|
-{
|
|
|
+public interface IMaTechnicianService extends IService<MaTechnician> {
|
|
|
+ /**
|
|
|
+ * 商户入驻申请
|
|
|
+ *
|
|
|
+ * @param req 申请参数
|
|
|
+ */
|
|
|
+ void apply(MaTechnicianAppAddVo req);
|
|
|
+
|
|
|
/**
|
|
|
* 查询技师
|
|
|
*
|
|
|
@@ -38,34 +42,15 @@ public interface IMaTechnicianService
|
|
|
/**
|
|
|
* 新增技师
|
|
|
*
|
|
|
- * @param maTechnician 技师
|
|
|
+ * @param maTechnicianAppAddVo
|
|
|
* @return 结果
|
|
|
*/
|
|
|
public int insertMaTechnician(MaTechnicianAppAddVo maTechnicianAppAddVo);
|
|
|
|
|
|
- /**
|
|
|
- * 后台新增商户
|
|
|
- *
|
|
|
- * @param dto 新增商户参数
|
|
|
- * @param loginUser 当前登录用户
|
|
|
- * @return 结果
|
|
|
- */
|
|
|
- public int insertMerchant(MaTechnicianMerchantAddDTO dto, LoginUser loginUser);
|
|
|
-
|
|
|
- /**
|
|
|
- * 后台查询商户列表
|
|
|
- *
|
|
|
- * @param page 分页参数
|
|
|
- * @param dto 查询条件
|
|
|
- * @return 商户分页列表
|
|
|
- */
|
|
|
- public Page<MaTechnicianMerchantListVO> selectMerchantList(Page<MaTechnicianMerchantListVO> page,
|
|
|
- MaTechnicianMerchantQueryDTO dto);
|
|
|
-
|
|
|
/**
|
|
|
* 修改技师
|
|
|
*
|
|
|
- * @param maTechnician 技师
|
|
|
+ * @param
|
|
|
* @return 结果
|
|
|
*/
|
|
|
public int updateMaTechnician(MaTechnicianAppAddVo maTechnicianAppAddVo);
|
|
|
@@ -87,11 +72,35 @@ public interface IMaTechnicianService
|
|
|
public int deleteMaTechnicianById(Long id);
|
|
|
|
|
|
/**
|
|
|
- * 首页选中的城市是否有开通服务
|
|
|
- * @param areaCode
|
|
|
+ * 根据商户id查询技师列表
|
|
|
+ *
|
|
|
+ * @param userId 商户id
|
|
|
+ * @return 技师列表
|
|
|
+ */
|
|
|
+ public List<MaProject> selectMaTechnicianListBy(String userId, String type);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据服务类型id查询服务列表
|
|
|
+ *
|
|
|
+ * @param typeId 服务类型id
|
|
|
+ * @return 服务列表
|
|
|
+ */
|
|
|
+ public List<Project> selectTechnicianListBy(String typeId);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取未申请服务列表
|
|
|
+ *
|
|
|
+ * @param userId
|
|
|
+ * @param typeId
|
|
|
* @return
|
|
|
*/
|
|
|
- Boolean isHasMerchantCity(String areaCode);
|
|
|
+ List<Project> getNotApplyList(String userId, String typeId);
|
|
|
|
|
|
- List<MerchantVo> getMerchantRecommend(MassageMerchantRecommendDto dto);
|
|
|
+ /**
|
|
|
+ * 申请服务
|
|
|
+ *
|
|
|
+ * @param dto
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ int applyForService(MaProjectSaveDto dto);
|
|
|
}
|