Add user to Resource.

This commit is contained in:
Yang Luo
2021-09-05 23:46:38 +08:00
parent 90ec8ec787
commit a1b16f88d1
6 changed files with 26 additions and 5 deletions

View File

@ -88,6 +88,7 @@ func (c *ApiController) DeleteResource() {
func (c *ApiController) UploadResource() {
owner := c.Input().Get("owner")
username := c.Input().Get("user")
application := c.Input().Get("application")
tag := c.Input().Get("tag")
parent := c.Input().Get("parent")
@ -134,6 +135,7 @@ func (c *ApiController) UploadResource() {
Owner: owner,
Name: objectKey,
CreatedTime: util.GetCurrentTime(),
User: username,
Provider: provider.Name,
Application: application,
Tag: tag,