rename item
This commit is contained in:
parent
f6ea4a4753
commit
3016de67f3
1 changed files with 6 additions and 6 deletions
|
@ -68,9 +68,9 @@ type SharedItem interface {
|
|||
}
|
||||
|
||||
type shareResponse struct {
|
||||
ID ID `json:"id"`
|
||||
Type shares.EntityType `json:"type"`
|
||||
Item SharedItem `json:"item,omitempty"`
|
||||
ID ID `json:"id"`
|
||||
Type shares.EntityType `json:"type"`
|
||||
SharedItem SharedItem `json:"sharedItem,omitempty"`
|
||||
}
|
||||
|
||||
func ShareFrom(ctx context.Context) *shares.Share {
|
||||
|
@ -97,9 +97,9 @@ func respondShareHandler(ie EntityFunc) ShareHandlerFunc {
|
|||
}
|
||||
|
||||
sRes := shareResponse{
|
||||
ID: id,
|
||||
Type: share.Type,
|
||||
Item: res,
|
||||
ID: id,
|
||||
Type: share.Type,
|
||||
SharedItem: res,
|
||||
}
|
||||
|
||||
respond(w, r, sRes)
|
||||
|
|
Loading…
Reference in a new issue