123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- package com.yihu.wlyy.analysis.model;
- import org.springframework.data.annotation.Id;
- /**
- * Created by Administrator on 2017/2/9.
- * 数据对象的公工接口
- * // 业务日志
- * 0 consult // 咨询
- * 1 guidance // 指导
- * 2 article // 健康教育
- * 3 followup // 随访
- * 4 appointment // 预约
- * 5 label // 标签
- * 6 register // 注册
- * 7 archive // 健康档案
- {
- time:"" 时间
- ,logType:2 日志类型
- ,caller:"" 调用者
- ,traceId: "" 主流程id
- ,spanId:"" 模块id
- ,data:{
- ,businessType:"" 业务类型
- ,patient:"" 居民
- ,data:{} 业务数据
- } 数据
- }
- // 接口调用日志
- {
- time:"" 时间
- ,logType:1 日志类型
- ,caller:"" 调用者
- ,traceId: "" 主流程id
- ,spanId:"" 模块id
- ,data:{
- responseTime:"" 响应时间
- ,url:"" 接口URL
- ,params:{} 参数
- } 数据
- }
- */
- public class DataModel {
- @Id
- protected String id;
- protected String traceId;//主流程ID
- protected String spanId;//模块Id
- protected String time;//时间
- protected String caller; //调用者
- protected String logType;//日志类型 1接口 2业务
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
- public String getLogType() {
- return logType;
- }
- public void setLogType(String logType) {
- this.logType = logType;
- }
- public String getTime() {
- return time;
- }
- public void setTime(String time) {
- this.time = time;
- }
- public String getCaller() {
- return caller;
- }
- public void setCaller(String caller) {
- this.caller = caller;
- }
- public String getTraceId() {
- return traceId;
- }
- public void setTraceId(String traceId) {
- this.traceId = traceId;
- }
- public String getSpanId() {
- return spanId;
- }
- public void setSpanId(String spanId) {
- this.spanId = spanId;
- }
- }
|