org.loli.base.RpcAnnotation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of loli-core Show documentation
Show all versions of loli-core Show documentation
a simple micro service framework written in kotlin
The newest version!
package org.loli.base
/**
* 需要暴露出去的方法或类
*/
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class RpcExport(
/**
* 名称,默认为类或方法名
*/
val name : String = "",
/**
* 描述
*/
val desc : String
)
/**
* 描述
*/
annotation class RpcDesc(
/**
* 描述
*/
val desc: String
)
/**
* 方法返回
*/
@Target(AnnotationTarget.FUNCTION)
annotation class RpcReturn(
/**
* 描述
*/
val desc: String
)
/**
* 是否需要鉴权,默认是
*/
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class RpcAuth(
/**
* 是否需要鉴权
*/
val need: Boolean = true
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy