package com.djhk.common.api;

import com.djhk.common.core.domain.R;
import com.djhk.common.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 系统服务
 *
 * @author gqj
 */
//@FeignClient(contextId = "remoteSystemService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSystemFallbackFactory.class)
public interface RemoteSystemService
{
    /**
     * 校验短信
     * @param phoneNo
     * @param templateCodeIndex
     * @return
     */
    @GetMapping("/sms/checkSmsCode")
    public R<String> checkSmsCode(@RequestParam("phoneNo") String phoneNo, @RequestParam("templateCodeIndex") String templateCodeIndex,@RequestParam("smsCode") String smsCode);


    /**
     * 恢复密码
     * @param phone
     * @param password
     * @return
     */
    @PutMapping("/user/profile/recoverPwd")
    public R<String> recoverPwd(@RequestParam("phone") String phone, @RequestParam("password") String password);



    /**
     * 飞手认证
     * @return
     */
    @PutMapping("/user/profile/authOperator")
    public R<String> authOperator();

    /**
     *获取参数配置列表
     * @return
     */
    @GetMapping("/config/list")
    public TableDataInfo list(@RequestParam("ConfigKey") String configKey);

}
