Merge pull request #8010 from wy65701436/remove-robot-id

remove the id in the post body when to create a robot account
This commit is contained in:
Wenkai Yin 2019-06-11 11:23:24 +08:00 committed by GitHub
commit a820cf1236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,
}