package com.storlead.centre.system;

import cn.hutool.json.JSONObject;
import com.storlead.framework.web.assemble.Result;
import com.storlead.wx.service.CorpWeChatService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: storlead-centre-platform
 * @description:
 * @author: chenkq
 * @create: 2025-12-31 17:46
 */
@Api(tags = "系统: 企业微信管理")
@RestController
@RequestMapping("/xwork")
@Log4j2
public class CorpWeChatController {
    @Resource
    private CorpWeChatService corpWeChatService;

    @ApiOperation("返回用于企业微信登陆所需要的参数")
    @GetMapping("/get_x_work_login_param")
    public Result<JSONObject> getCorpWechatLoginParam() {
        Result<JSONObject> result = new Result<>();

        result.setResult(corpWeChatService.getCorpWechatLoginParam());
        return result;
    }

}
