mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-01 04:21:36 +01:00
Merge pull request #7859 from wy65701436/return-robot-id
Return account id when to issue a robot
This commit is contained in:
commit
592e40bacf
@ -65,6 +65,7 @@ func (rq *RobotReq) Valid(v *validation.Validation) {
|
||||
|
||||
// RobotRep ...
|
||||
type RobotRep struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
@ -158,6 +158,7 @@ func (r *RobotAPI) Post() {
|
||||
}
|
||||
|
||||
robotRep := models.RobotRep{
|
||||
ID: id,
|
||||
Name: robot.Name,
|
||||
Token: rawTk,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user