Explorar o código

add thumbnail

animeic %!s(int64=2) %!d(string=hai) anos
pai
achega
bc3980b35e
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      mesh/api/service-meshes.go
  2. BIN=BIN
      mesh/mesh-service

+ 3 - 0
mesh/api/service-meshes.go

@@ -21,6 +21,9 @@ func RegQueenMeshes(router *GinRouter) {
 			if len(hub.Name) < 1 {
 				return nil, NewError("参数不合法!")
 			}
+			if len(hub.Thumbnail) < 1 {
+				return nil, NewError("没有模型封面")
+			}
 			hub.CreateTime = time.Now()
 			hub.UserId, _ = primitive.ObjectIDFromHex(apictx.User.Parent)
 			if hub.UserId == primitive.NilObjectID {

BIN=BIN
mesh/mesh-service