liuxiaolong
2019-07-05 d8a5263b2306889d40ea0b0be559eda9f942301c
Merge branch 'master' of http://192.168.1.14:10010/r/webserver
2个文件已修改
22 ■■■■ 已修改文件
models/dbtables.go 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/model.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/dbtables.go
@@ -2,14 +2,14 @@
type Dbtables struct {
    BaseEntity
    TableName     string `json:"tableName" example:"底库123"`                         //表名
    TableDesc     string `json:"tableDesc" example:"底库描述"`                          //描述
    TableType     string `json:"tableType" example:"person,car"`                    //人员表"person
    BwType        string `json:"bwType" example:"黑名单:1,白名单:0"`                      //黑名单:1,白名单:0
    StartTime     string `json:"startTime,omitempty" example:"2019-01-12 12:14:56"` //有效期开始时间
    EndTime       string `json:"endTime,omitempty" example:"2019-10-12 12:14:56"`   //有效期结束时间
    IsSync        string `json:"isSync" example:"1:同步库,2:本地库"`                      //是否是同步库(1:同步库,2:本地库)
    AnalyServerId string `json:"analyServerId" example:"本地库所属的分析设备id,如果是同步库就不需要记录"` // 分析设备id(本地库所属的分析设备id,如果是同步库就不需要记录)
    TableName     string `json:"tableName,omitempty" example:"底库123"`                         //表名
    TableDesc     string `json:"tableDesc,omitempty" example:"底库描述"`                          //描述
    TableType     string `json:"tableType,omitempty" example:"person,car"`                    //人员表"person
    BwType        string `json:"bwType,omitempty" example:"黑名单:1,白名单:0"`                      //黑名单:1,白名单:0
    StartTime     string `json:"startTime,omitempty" example:"2019-01-12 12:14:56"`           //有效期开始时间
    EndTime       string `json:"endTime,omitempty" example:"2019-10-12 12:14:56"`             //有效期结束时间
    IsSync        string `json:"isSync,omitempty" example:"1:同步库,2:本地库"`                      //是否是同步库(1:同步库,2:本地库)
    AnalyServerId string `json:"analyServerId,omitempty" example:"本地库所属的分析设备id,如果是同步库就不需要记录"` // 分析设备id(本地库所属的分析设备id,如果是同步库就不需要记录)
}
//UploadFlag string `json:"uploadFlag,omitempty" example:"上传标志"` //
models/model.go
@@ -6,9 +6,9 @@
    Id         string `gorm:"primary_key" json:"id" example:"XeW0HmoBevddG23Ild5o"`
    CreateTime string `json:"createTime,omitempty" example:""`
    UpdateTime string `json:"updateTime,omitempty" example:""`
    CreateBy   string `json:"createBy" example:""`
    IsDelete   int    `json:"isDelete" example:"0 未删除 1已删除"`
    Enable     int    `json:"enable" example:" 1生效 0未生效"`
    CreateBy   string `json:"createBy,omitempty" example:""`
    IsDelete   int    `json:"isDelete,omitempty" example:"0 未删除 1已删除"`
    Enable     int    `json:"enable,omitempty" example:" 1生效 0未生效"`
}
func (dp *BaseEntity) PriInsert() {