package com.liangjian.dataplatform.member.controller;


import com.liangjian.dataplatform.member.service.IMemberextsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.elasticsearch.search.SearchHit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/memberexts")
@Api(value = "会员信息详情控制器", tags = "会员信息详情", description = "会员信息详情控制器")
public class MemberextsController {

    @Autowired
    private IMemberextsService memberextsService;

    @PostMapping("/memberextsByPhone")
    @ApiOperation(value = "查询会员信息")
    public Map<String, Object> memberextsByPhone(@ApiParam(value = "参数", required = true) @RequestBody String data){

        return memberextsService.memberextsByPhone(data);
    }

    @PostMapping("/index")
    @ApiOperation(value = "查询会员信息")
    public Map<String, Object> index(@ApiParam(value = "参数", required = true) @RequestBody String data){

        return memberextsService.index(data);
    }

    @PostMapping("/TagByMemberPhone")
    @ApiOperation(value = "查询用户标签")
    public Map<String, Object> tagByMemberPhone( String data){

        return memberextsService.tagByMemberPhone(data);
    }






}
