From d3da7ad0d777a84fedbf0c0d0316ddbc0f49ada8 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 10 七月 2019 14:04:34 +0800
Subject: [PATCH] add gb config
---
controllers/syssetcont.go | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/controllers/syssetcont.go b/controllers/syssetcont.go
index 3d3b3be..9bb4cbc 100644
--- a/controllers/syssetcont.go
+++ b/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鏈嶅姟鍣↖P" gorm:"column:ServerIp"`
- ServerPort int `json:"ServerPort,omitempty" example:"21231" gorm:"column:ServerPort"`
- ServerId string `json:"ServerId,omitempty" example:"SIP鏈嶅姟鍣↖d" 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:"鍥芥爣鏈嶅姟鍣↖P" gorm:"column:ServerIp"`
+ ServerPort int `json:"ServerPort" example:"鏈嶅姟鍣ㄧ鍙�:8060" gorm:"column:ServerPort"`
+ PublicId string `json:"ServerId" example:"鍥芥爣鏈嶅姟鍣↖d" 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,"鍙傛暟鏈夎")
--
Gitblit v1.8.0