WeAppClient.java 1006 字节
Newer Older
1 2 3
package com.linkwechat.wecom.client;

import com.dtflys.forest.annotation.DataObject;
4
import com.dtflys.forest.annotation.Header;
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.annotation.Request;
import com.linkwechat.wecom.domain.dto.WeAppDetailDto;
import com.linkwechat.wecom.domain.dto.WeAppDto;
import com.linkwechat.wecom.domain.dto.WeResultDto;

/**
 * 应用管理相关接口
 */
public interface WeAppClient {

    /**
     * 获取企业应用列表
     * @return
     */
    @Request(url = "/agent/list")
    WeAppDto  findAgentList();

    /**
     * 根据应用id获取应用详情
     * @param agentid
     * @return
     */
    @Request(url = "/agent/get")
29
    WeAppDetailDto  findAgentById(@Query("agentid") String agentid);
30 31 32 33 34 35

    /**
     * 设置应用
     * @param weAppDetailDto
     * @return
     */
36 37
    @Request(url = "/agent/set",type = "POST")
    WeResultDto updateAgentById(@DataObject WeAppDetailDto weAppDetailDto,@Header("agentid")String agentid);
38
}