liuxiaolong
2019-07-10 d3da7ad0d777a84fedbf0c0d0316ddbc0f49ada8
add gb config
1个文件已修改
18 ■■■■ 已修改文件
controllers/syssetcont.go 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/syssetcont.go
@@ -3,7 +3,6 @@
import (
    "basic.com/dbapi.git"
    "github.com/gin-gonic/gin"
    "time"
    "webserver/extend/code"
    "webserver/extend/util"
)
@@ -30,13 +29,14 @@
}
type Gb28181ConfigVo struct {
    ID string `json:"ID,omitempty" gorm:"primary_key" `
    ServerIp string `json:"ServerIp,omitempty" example:"SIP服务器IP" gorm:"column:ServerIp"`
    ServerPort int `json:"ServerPort,omitempty" example:"21231" gorm:"column:ServerPort"`
    ServerId string `json:"ServerId,omitempty" example:"SIP服务器Id" gorm:"column:ServerId"`
    UserAuthId string `json:"UserAuthId,omitempty" example:"SIP用户认证ID" gorm:"column:UserAuthId"`
    Password string `json:"Password,omitempty" example:"密码" gorm:"column:Password"`
    UpdateTime time.Time `json:"-" gorm:"column:UpdateTime"`
    Id string `json:"Id" gorm:"primary_key" `
    ServerIp string `json:"ServerIp" example:"国标服务器IP" gorm:"column:ServerIp"`
    ServerPort int `json:"ServerPort" example:"服务器端口:8060" gorm:"column:ServerPort"`
    PublicId string `json:"ServerId" example:"国标服务器Id" gorm:"column:PublicId"`
    GbServerPort int `json:"GbServerPort" example:"国标服务端口:7060" gorm:"column:GbServerPort"`
    IsAuth bool `json:"IsAuth" example:"是否开启鉴权:true" gorm:"column:IsAuth"`
    Password string `json:"Password" example:"密码" gorm:"column:Password"`
    UpdateTime string `json:"UpdateTime" gorm:"column:UpdateTime"`
}
// @Summary 存储信息查询
@@ -205,7 +205,7 @@
// @Failure 500 {string} json "{"code":500,  msg:"返回错误信息", success:false}"
// @Router /data/api-v/sysset/gb28181ConfigEdit [POST]
func (sset SysSetController) Gb28181ConfigEdit(c *gin.Context) {
    var args LocalConfigVo
    var args Gb28181ConfigVo
    err := c.BindJSON(&args)
    if err !=nil {
        util.ResponseFormat(c,code.RequestParamError,"参数有误")