luo
2023-12-25 23c4967b4cb8dbce8277f830f7152d315c5a4a57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.HousingDemand;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import com.stylefeng.guns.modular.system.warpper.req.HousingDemandReq;
import com.stylefeng.guns.modular.system.warpper.req.SearchHousingDemandReq;
import com.stylefeng.guns.modular.system.warpper.res.ContactInformationRes;
import com.stylefeng.guns.modular.system.warpper.res.HousingDemandInfoRes;
import com.stylefeng.guns.modular.system.warpper.res.SearchHousingDemandRes;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @Date 2023/11/20 16:59
 */
public interface IHousingDemandService extends IService<HousingDemand> {
 
 
    /**
     * 添加房源需求
     * @param req
     */
    ResultUtil addHousingDemand(HousingDemandReq req);
 
 
    /**
     * 搜索求房源列表数据
     * @param req
     * @return
     */
    SearchHousingDemandRes searchHousingDemand(SearchHousingDemandReq req);
 
    /**
     * 不带分页的求房源列表数据
     */
    SearchHousingDemandRes searchHousingDemand1(Integer id);
    /**
     * 不带分页的求房源列表数据 根据用户收藏的ids
     */
    SearchHousingDemandRes searchHousingDemand2(List<Integer> id);
    /**
     * 获取求房源详情
     * @param id
     * @return
     */
    HousingDemandInfoRes housingDemandInfo(Integer id);
 
 
    /**
     * 获取联系方式
     * @param id
     * @return
     */
    ContactInformationRes getContactInformation(Integer id);
 
 
 
    /**
     * 获取剩余发布数量
     * @return
     */
    ResultUtil<Integer> getSurplusPushNumber();
}