mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-26 06:44:23 +00:00
chore: fix update resource api
This commit is contained in:
@@ -4,6 +4,7 @@ package slash.api.v2;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/client.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
|
||||
option go_package = "gen/api/v2";
|
||||
|
||||
@@ -16,10 +17,10 @@ service UserSettingService {
|
||||
// UpdateUserSetting updates the user setting.
|
||||
rpc UpdateUserSetting(UpdateUserSettingRequest) returns (UpdateUserSettingResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v2/users/{id}/settings"
|
||||
body: "*"
|
||||
patch: "/api/v2/users/{id}/settings"
|
||||
body: "user_setting"
|
||||
};
|
||||
option (google.api.method_signature) = "id";
|
||||
option (google.api.method_signature) = "user_setting,update_mask";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +63,7 @@ message UpdateUserSettingRequest {
|
||||
UserSetting user_setting = 2;
|
||||
|
||||
// update_mask is the field mask to update.
|
||||
repeated string update_mask = 3;
|
||||
google.protobuf.FieldMask update_mask = 3;
|
||||
}
|
||||
|
||||
message UpdateUserSettingResponse {
|
||||
|
Reference in New Issue
Block a user