Browse Source

feat: format code

pull/7/head
konenet 5 years ago
parent
commit
eef9f95837
  1. 1
      api/v1/group_router.go
  2. 1
      api/v1/user_router.go
  3. 2
      cmd/main.go
  4. 1
      common/util/file-suffix.go
  5. 4
      test/proto_test.go

1
api/v1/group_router.go

@ -8,6 +8,7 @@ import ( @@ -8,6 +8,7 @@ import (
"github.com/gin-gonic/gin"
)
// 获取分组列表
func GetGroup(c *gin.Context) {
uuid := c.Param("uuid")

1
api/v1/user_router.go

@ -50,7 +50,6 @@ func ModifyUserInfo(c *gin.Context) { @@ -50,7 +50,6 @@ func ModifyUserInfo(c *gin.Context) {
c.JSON(http.StatusOK, response.SuccessMsg(nil))
}
func GetUserDetails(c *gin.Context) {
uuid := c.Param("uuid")

2
cmd/main.go

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
package main
import (
"chat-room/global/log"
"chat-room/config"
"chat-room/global/log"
"chat-room/router"
"chat-room/server"
"go.uber.org/zap"

1
common/util/file-suffix.go

@ -51,7 +51,6 @@ func init() { @@ -51,7 +51,6 @@ func init() {
fileTypeMap.Store("52494646246009005741", "wav") //Wave (wav)
fileTypeMap.Store("52494646", "wav") //Wave (wav)
fileTypeMap.Store("52494646d07d60074156", "avi")
fileTypeMap.Store("1a45dfa3a34286810142", "webm")

4
test/proto_test.go

@ -1,5 +1 @@ @@ -1,5 +1 @@
package test
import (
)

Loading…
Cancel
Save