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 {
|
type shareResponse struct {
|
||||||
ID ID `json:"id"`
|
ID ID `json:"id"`
|
||||||
Type shares.EntityType `json:"type"`
|
Type shares.EntityType `json:"type"`
|
||||||
Item SharedItem `json:"item,omitempty"`
|
SharedItem SharedItem `json:"sharedItem,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ShareFrom(ctx context.Context) *shares.Share {
|
func ShareFrom(ctx context.Context) *shares.Share {
|
||||||
|
@ -97,9 +97,9 @@ func respondShareHandler(ie EntityFunc) ShareHandlerFunc {
|
||||||
}
|
}
|
||||||
|
|
||||||
sRes := shareResponse{
|
sRes := shareResponse{
|
||||||
ID: id,
|
ID: id,
|
||||||
Type: share.Type,
|
Type: share.Type,
|
||||||
Item: res,
|
SharedItem: res,
|
||||||
}
|
}
|
||||||
|
|
||||||
respond(w, r, sRes)
|
respond(w, r, sRes)
|
||||||
|
|
Loading…
Reference in a new issue