1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 17:44:59 +09:00

GO-955 Change type to int64

This commit is contained in:
kirillston 2023-04-25 18:17:59 +02:00 committed by Mikhail Iudin
parent 4a6ce0540d
commit 86879cb966
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
4 changed files with 782 additions and 871 deletions

View file

@ -306,7 +306,7 @@ func (mw *Middleware) AccountCreate(cctx context.Context, req *pb.RpcAccountCrea
},
{
Key: bundle.RelationKeyIconOption.String(),
Value: pbtypes.Int64(int64(req.Icon)),
Value: pbtypes.Int64(req.Icon),
},
}
profileDetails := make([]*pb.RpcObjectSetDetailsDetail, 0)

View file

@ -863,7 +863,6 @@
- [Rpc.Account.ConfigUpdate.Response.Error.Code](#anytype-Rpc-Account-ConfigUpdate-Response-Error-Code)
- [Rpc.Account.ConfigUpdate.Timezones](#anytype-Rpc-Account-ConfigUpdate-Timezones)
- [Rpc.Account.Create.Request.IconOption](#anytype-Rpc-Account-Create-Request-IconOption)
- [Rpc.Account.Create.Response.Error.Code](#anytype-Rpc-Account-Create-Response-Error-Code)
- [Rpc.Account.Delete.Response.Error.Code](#anytype-Rpc-Account-Delete-Response-Error-Code)
- [Rpc.Account.Move.Response.Error.Code](#anytype-Rpc-Account-Move-Response-Error-Code)
@ -2121,7 +2120,7 @@ Front end to middleware request-to-create-an account
| name | [string](#string) | | Account name |
| avatarLocalPath | [string](#string) | | Path to an image, that will be used as an avatar of this account |
| storePath | [string](#string) | | Path to local storage |
| icon | [Rpc.Account.Create.Request.IconOption](#anytype-Rpc-Account-Create-Request-IconOption) | | Option of pre-installed icon |
| icon | [int64](#int64) | | Option of pre-installed icon |
| alphaInviteCode | [string](#string) | | |
@ -14034,26 +14033,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
<a name="anytype-Rpc-Account-Create-Request-IconOption"></a>
### Rpc.Account.Create.Request.IconOption
| Name | Number | Description |
| ---- | ------ | ----------- |
| ICON_OPTION_0 | 0 | |
| ICON_OPTION_1 | 1 | |
| ICON_OPTION_2 | 2 | |
| ICON_OPTION_3 | 3 | |
| ICON_OPTION_4 | 4 | |
| ICON_OPTION_5 | 5 | |
| ICON_OPTION_6 | 6 | |
| ICON_OPTION_7 | 7 | |
| ICON_OPTION_8 | 8 | |
| ICON_OPTION_9 | 9 | |
<a name="anytype-Rpc-Account-Create-Response-Error-Code"></a>
### Rpc.Account.Create.Response.Error.Code

File diff suppressed because it is too large Load diff

View file

@ -256,22 +256,9 @@ message Rpc {
string avatarLocalPath = 2; // Path to an image, that will be used as an avatar of this account
}
string storePath = 3; // Path to local storage
IconOption icon = 4; // Option of pre-installed icon
int64 icon = 4; // Option of pre-installed icon
string alphaInviteCode = 20;
enum IconOption {
ICON_OPTION_0 = 0;
ICON_OPTION_1 = 1;
ICON_OPTION_2 = 2;
ICON_OPTION_3 = 3;
ICON_OPTION_4 = 4;
ICON_OPTION_5 = 5;
ICON_OPTION_6 = 6;
ICON_OPTION_7 = 7;
ICON_OPTION_8 = 8;
ICON_OPTION_9 = 9;
}
}
/**