feat:完善后台经纪人审核信息
This commit is contained in:
@ -431,5 +431,12 @@ func (*Manage) AgentCompanyEdit(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (*Manage) AgentCompanyDelete(c *gin.Context) {
|
||||
form := new(api.IDStringForm)
|
||||
|
||||
if err := api.Bind(form)(c); err != nil {
|
||||
api.APIFailure(err.(error))(c)
|
||||
return
|
||||
}
|
||||
err := manage.NewAgent()(api.GetSession()(c).(*session.Enterprise)).Delete(form.Convert())
|
||||
api.APIResponse(err)(c)
|
||||
}
|
||||
|
Reference in New Issue
Block a user