public interface MomentApi
@POST(value="externalcontact/add_moment_task") <T extends MomentAttachment> GenericResponse<String> addMomentTask(@Body MomentBody<T> body)
T - the type parameterbody - the body@GET(value="externalcontact/get_moment_task_result") MomentTaskResultResponse getMomentTaskResult(@Query(value="jobid") String jobId)
jobId - the job id@POST(value="externalcontact/get_moment_list") MomentListResponse getMomentList(@Body MomentListRequest request)
request - the request@POST(value="externalcontact/get_moment_task") MomentMemberTaskResponse getMomentTask(@Body MomentTaskRequest request)
request - the request@POST(value="externalcontact/get_moment_customer_list") MomentCustomerListResponse getMomentCustomerList(@Body MomentInfoRequest request)
指用户发表时指定了哪些客户可收
request - the request@POST(value="externalcontact/get_moment_send_result") MomentCustomerListResponse getMomentSendResult(@Body MomentInfoRequest request)
指哪些客户真正可以看到
request - the request@POST(value="externalcontact/cancel_moment_task") WeComResponse cancelMomentTask(@Body MomentId momentId)
momentId - the moment id@POST(value="externalcontact/get_moment_comments") MomentCommentResponse getMomentComments(@Body UserMoment userId)
优化了企业微信给的数据结构
userId - the user id@POST(value="externalcontact/moment_strategy/list") StrategyListResponse momentStrategyList(@Body PageRequest request)
request - the request@POST(value="externalcontact/moment_strategy/get") MomentStrategyDetailResponse getMomentStrategy(@Body StrategyId strategyId)
strategyId - the strategy id@POST(value="externalcontact/moment_strategy/get_range") StrategyRangeResponse getMomentStrategyRange(@Body StrategyRangeRequest request)
request - the request@POST(value="externalcontact/moment_strategy/create") GenericResponse<Integer> createMomentStrategy(@Body CustomerStrategyRequest request)
request - the request@POST(value="externalcontact/moment_strategy/edit") WeComResponse editMomentStrategy(@Body MutableMomentStrategy request)
request - the request@POST(value="externalcontact/moment_strategy/del") WeComResponse delMomentStrategy(@Body StrategyId strategyId)
strategyId - the strategy idCopyright © 2023. All rights reserved.