feat:完善项目信息

This commit is contained in:
henry
2022-01-19 16:21:22 +08:00
parent 94106773f5
commit f0a450b2e5
3 changed files with 2 additions and 4 deletions

View File

@ -121,7 +121,7 @@ func (c *Company) Form(params *BasicParams, other *config.IdentityForCompany) er
} }
mManageCompany.Product = other.Product mManageCompany.Product = other.Product
mManageCompany.Url = other.Url mManageCompany.Url = other.Url
mManageCompany.License = other.License mManageCompany.License = other.FilterLicense()
mManageCompany.SetIndustryAttribute(params.Industrys) mManageCompany.SetIndustryAttribute(params.Industrys)
mManageCompany.SetKeywordAttribute(params.Keywords) mManageCompany.SetKeywordAttribute(params.Keywords)
mManageCompany.SetDirectionAttribute(other.Directions) mManageCompany.SetDirectionAttribute(other.Directions)

View File

@ -47,8 +47,6 @@ func (*Settled) Company(c *gin.Context) {
api.APIFailure(err.(error))(c) api.APIFailure(err.(error))(c)
return return
} }
form.License = (&api.ImageForm{Image: form.License}).FilterImageURL()
err := settled.NewCompany()(api.GetSession()(c).(*session.Enterprise), api.GetTenantID()(c).(uint64)). err := settled.NewCompany()(api.GetSession()(c).(*session.Enterprise), api.GetTenantID()(c).(uint64)).
Launch(form.settledForm.bind(), (&api.IDStringForm{ID: form.InviterCode}).Convert(), &form.IdentityForCompany) Launch(form.settledForm.bind(), (&api.IDStringForm{ID: form.InviterCode}).Convert(), &form.IdentityForCompany)
api.APIResponse(err)(c) api.APIResponse(err)(c)

View File

@ -90,7 +90,7 @@ func (c *Company) Launch(params *BasicParams, inviterID uint64, other *config.Id
} }
mManageCompany.Product = other.Product mManageCompany.Product = other.Product
mManageCompany.Url = other.Url mManageCompany.Url = other.Url
mManageCompany.License = other.License mManageCompany.License = other.FilterLicense()
mManageCompany.SetIndustryAttribute(params.Industrys) mManageCompany.SetIndustryAttribute(params.Industrys)
mManageCompany.SetKeywordAttribute(params.Keywords) mManageCompany.SetKeywordAttribute(params.Keywords)
mManageCompany.SetDirectionAttribute(other.Directions) mManageCompany.SetDirectionAttribute(other.Directions)