All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.microjservice.lark.api.MessageApi.kt Maven / Gradle / Ivy

There is a newer version: 0.1.7
Show newest version
package org.microjservice.lark.api

import io.micronaut.context.annotation.Parameter
import io.micronaut.http.MediaType
import io.micronaut.http.annotation.Body
import io.micronaut.http.annotation.Post
import io.micronaut.http.annotation.QueryValue
import io.micronaut.http.client.annotation.Client
import org.microjservice.lark.api.models.Message

/**
 * Message API
 *
 * @author Coder Yellow
 * @since 0.1.0
 */
@Client(value = "\${lark.endpoint}/im/v1")
interface MessageApi {

    @Post(value = "/messages", produces = [MediaType.APPLICATION_JSON])
    fun send(@QueryValue("receive_id_type") receiveIdType: Message.ReceiveIdType, @Body message: Message)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy