package com.sptg.permissions.biz.controller;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.sptg.permissions.api.entity.WeiXinConf;
import com.sptg.permissions.api.feigns.WeiXinConfFeign;
import com.sptg.permissions.biz.service.WeiXinConfInterface;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * title: WeiXinConfController
 * package: com.sptg.permissions.biz.controller
 * description: 微信配置-控制器
 *
 *
 *
 */
@RestController
@RequiredArgsConstructor
public class WeiXinConfController implements WeiXinConfFeign {

    private final WeiXinConfInterface weiXinConfInterface;

    @Override
    @PostMapping(value = "/weixin/selectEntityByOrgIdAndName")
    public WeiXinConf selectEntityByOrgIdAndName(@RequestBody WeiXinConf weiXinConf) {
        WeiXinConf conf = this.weiXinConfInterface.selectEntityByOrgIdAndName(weiXinConf);
        return conf;
    }

//    @Override
//    @PostMapping(value = "/weixin/selectEntityById")
//    public WeiXinConf selectEntityById(@RequestBody Long orgId) {
//        return this.weiXinConfInterface.selectEntityById(orgId);
//    }
}
