package com.mortals.xhx.busiz.dingtalk.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 钉钉配置
 *
 * @Author: ZXF
 */
@Data
@Configuration
public class TalkConfiguration {

    /**
     * AgentId
     */
    @Value("${dingtalk.agentId:''}")
    private String getAgentId;

    /**
     * appKey
     */
    @Value("${dingtalk.AppKey:''}")
    private String AppKey;

    /**
     * AppSecret
     */
    @Value("${dingtalk.AppSecret:''}")
    private String AppSecret;

    /**
     * getToken
     */
    @Value("${dingtalk.gettoken:https://oapi.dingtalk.com/gettoken}")
    private String getTokneUrl;

    /**
     * 获取部门列表
     */
    @Value("${dingtalk.listsub:https://oapi.dingtalk.com/topapi/v2/department/listsub}")
    private String getSubList;

    /**
     * 根据部门id获取用户详情列表
     */
    @Value("${dingtalk.getUserList:https://oapi.dingtalk.com/topapi/v2/user/list}")
    private String getuserlist;

    /**
     * 根据电话查询用户信息
     */
    @Value("${dingtalk.getbymobile:https://oapi.dingtalk.com/topapi/v2/user/getbymobile}")
    private String getbymobile;

    /**
     * 根据userid查询用户信息
     */
    @Value("${dingtalk.getuserinfo:https://oapi.dingtalk.com/topapi/v2/user/get}")
    private String getuserinfo;
    /**
     * getDeptbyUser
     */
    @Value("${dingtalk.getDeptbyUser:''}")
    private String getDeptbyUser;


    /**
     * workCreate
     */
    @Value("${dingtalk.workCreate:''}")
    private String workCreate;


    /**
     * processCode
     */
    @Value("${dingtalk.processCode:''}")
    private String processCode;

    /**
     * aesToken
     */
    @Value("${dingtalk.aesToken:''}")
    private String aesToken;

    /**
     * aseKey
     */
    @Value("${dingtalk.aesKey:''}")
    private String aesKey;

    /**
     * ownerKey
     */
    @Value("${dingtalk.ownerKey:''}")
    private String ownerKey;

}
