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

nbcp.myoql.db.mongo.table.BaseRequestDataMeta.kt Maven / Gradle / Ivy

The newest version!
package nbcp.myoql.db.mongo.table

import java.io.*
import nbcp.base.db.*
import nbcp.base.comm.*
import nbcp.base.extend.*
import nbcp.base.enums.*
import nbcp.base.utils.*
import nbcp.myoql.db.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.mongo.*
import nbcp.myoql.db.mongo.base.*
import nbcp.myoql.db.mongo.component.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*

/**
 * 请求数据
 */
@nbcp.base.db.annotation.Cn(value = """请求数据""")
class BaseRequestDataMeta(private val parentPropertyName: String) : MongoColumnName() {
    constructor(value: MongoColumnName) : this(value.toString()) {}

    /**
     * 访问地址
     */
    @nbcp.base.db.annotation.Cn(value = """访问地址""")
    val url = mongoColumnJoin(this.parentPropertyName, "url")

    /**
     * 访问方法
     */
    @nbcp.base.db.annotation.Cn(value = """访问方法""")
    val method = mongoColumnJoin(this.parentPropertyName, "method")

    /**
     * 调用链Id
     */
    @nbcp.base.db.annotation.Cn(value = """调用链Id""")
    val traceId = mongoColumnJoin(this.parentPropertyName, "traceId")

    /**
     * 请求体
     */
    @nbcp.base.db.annotation.Cn(value = """请求体""")
    val body = mongoColumnJoin(this.parentPropertyName, "body")

    /**
     * 请求头
     */
    @nbcp.base.db.annotation.Cn(value = """请求头""")
    val header = MoerMetaMap(this.parentPropertyName, "header") /*:map*/

    /**
     * 客户端Ip
     */
    @nbcp.base.db.annotation.Cn(value = """客户端Ip""")
    val clientIP = mongoColumnJoin(this.parentPropertyName, "clientIP")
    override fun toString(): String {
        return mongoColumnJoin(this.parentPropertyName).toString()
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy