Add: model - group / Test: group

This commit is contained in:
HFO4
2019-11-13 16:28:14 +08:00
parent 079c730319
commit c7e47293db
6 changed files with 185 additions and 21 deletions

View File

@@ -4,6 +4,7 @@ import (
"cloudreve/models"
"cloudreve/pkg/serializer"
"cloudreve/pkg/util"
"fmt"
"github.com/gin-gonic/gin"
)
@@ -47,6 +48,8 @@ func (service *UserLoginService) Login(c *gin.Context) serializer.Response {
"user_id": expectedUser.ID,
})
fmt.Println(expectedUser)
return serializer.BuildUserResponse(expectedUser)
}