remove the id in the post body when to create a robot account

Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
wang yan 2019-06-11 10:47:14 +08:00
parent d8b76c482a
commit a4b202d656
2 changed files with 0 additions and 2 deletions

View File

@ -65,7 +65,6 @@ func (rq *RobotReq) Valid(v *validation.Validation) {
// RobotRep ...
type RobotRep struct {
ID int64 `json:"id"`
Name string `json:"name"`
Token string `json:"token"`
}

View File

@ -158,7 +158,6 @@ func (r *RobotAPI) Post() {
}
robotRep := models.RobotRep{
ID: id,
Name: robot.Name,
Token: rawTk,
}