rf/changes IDs from int64 to uint64

This commit is contained in:
itsscb 2023-10-09 20:46:14 +02:00
parent bfdbbe7e04
commit 8733dec355
72 changed files with 328 additions and 303 deletions

View File

@ -63,7 +63,7 @@ func (server *Server) createAccount(ctx *gin.Context) {
} }
type getAccountRequest struct { type getAccountRequest struct {
ID int64 `uri:"id" binding:"required,min=1" json:"id"` ID uint64 `uri:"id" binding:"required,min=1" json:"id"`
} }
func (server *Server) getAccount(ctx *gin.Context) { func (server *Server) getAccount(ctx *gin.Context) {
@ -142,7 +142,7 @@ func (server *Server) listAccounts(ctx *gin.Context) {
} }
type updateAccountPrivacyRequest struct { type updateAccountPrivacyRequest struct {
ID int64 `binding:"required" json:"ID"` ID uint64 `binding:"required" json:"ID"`
PrivacyAccepted *bool `binding:"required" json:"privacy_accepted"` PrivacyAccepted *bool `binding:"required" json:"privacy_accepted"`
} }
@ -180,7 +180,7 @@ func (server *Server) updateAccountPrivacy(ctx *gin.Context) {
} }
type updateAccountRequest struct { type updateAccountRequest struct {
ID int64 `binding:"required" json:"ID"` ID uint64 `binding:"required" json:"ID"`
NewPassword string `json:"new_password"` NewPassword string `json:"new_password"`
Firstname string `json:"firstname"` Firstname string `json:"firstname"`
Lastname string `json:"lastname"` Lastname string `json:"lastname"`

View File

@ -188,7 +188,7 @@ func TestGetAccountAPI(t *testing.T) {
testCases := []struct { testCases := []struct {
name string name string
accountID int64 accountID uint64
setupAuth func(t *testing.T, request *http.Request, tokenMaker token.Maker) setupAuth func(t *testing.T, request *http.Request, tokenMaker token.Maker)
buildStubs func(store *mockdb.MockStore) buildStubs func(store *mockdb.MockStore)
checkResponse func(t *testing.T, recorder *httptest.ResponseRecorder) checkResponse func(t *testing.T, recorder *httptest.ResponseRecorder)

View File

@ -249,7 +249,7 @@ func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call {
} }
// DeleteAccount mocks base method. // DeleteAccount mocks base method.
func (m *MockStore) DeleteAccount(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeleteAccount(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteAccount", arg0, arg1) ret := m.ctrl.Call(m, "DeleteAccount", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -263,7 +263,7 @@ func (mr *MockStoreMockRecorder) DeleteAccount(arg0, arg1 any) *gomock.Call {
} }
// DeleteDocument mocks base method. // DeleteDocument mocks base method.
func (m *MockStore) DeleteDocument(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeleteDocument(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteDocument", arg0, arg1) ret := m.ctrl.Call(m, "DeleteDocument", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -277,7 +277,7 @@ func (mr *MockStoreMockRecorder) DeleteDocument(arg0, arg1 any) *gomock.Call {
} }
// DeleteMail mocks base method. // DeleteMail mocks base method.
func (m *MockStore) DeleteMail(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeleteMail(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteMail", arg0, arg1) ret := m.ctrl.Call(m, "DeleteMail", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -291,7 +291,7 @@ func (mr *MockStoreMockRecorder) DeleteMail(arg0, arg1 any) *gomock.Call {
} }
// DeletePayment mocks base method. // DeletePayment mocks base method.
func (m *MockStore) DeletePayment(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeletePayment(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeletePayment", arg0, arg1) ret := m.ctrl.Call(m, "DeletePayment", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -305,7 +305,7 @@ func (mr *MockStoreMockRecorder) DeletePayment(arg0, arg1 any) *gomock.Call {
} }
// DeletePerson mocks base method. // DeletePerson mocks base method.
func (m *MockStore) DeletePerson(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeletePerson(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeletePerson", arg0, arg1) ret := m.ctrl.Call(m, "DeletePerson", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -319,7 +319,7 @@ func (mr *MockStoreMockRecorder) DeletePerson(arg0, arg1 any) *gomock.Call {
} }
// DeletePersonTx mocks base method. // DeletePersonTx mocks base method.
func (m *MockStore) DeletePersonTx(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeletePersonTx(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeletePersonTx", arg0, arg1) ret := m.ctrl.Call(m, "DeletePersonTx", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -333,7 +333,7 @@ func (mr *MockStoreMockRecorder) DeletePersonTx(arg0, arg1 any) *gomock.Call {
} }
// DeleteProvider mocks base method. // DeleteProvider mocks base method.
func (m *MockStore) DeleteProvider(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeleteProvider(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteProvider", arg0, arg1) ret := m.ctrl.Call(m, "DeleteProvider", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -347,7 +347,7 @@ func (mr *MockStoreMockRecorder) DeleteProvider(arg0, arg1 any) *gomock.Call {
} }
// DeleteReturn mocks base method. // DeleteReturn mocks base method.
func (m *MockStore) DeleteReturn(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeleteReturn(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteReturn", arg0, arg1) ret := m.ctrl.Call(m, "DeleteReturn", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -361,7 +361,7 @@ func (mr *MockStoreMockRecorder) DeleteReturn(arg0, arg1 any) *gomock.Call {
} }
// DeleteReturnsLog mocks base method. // DeleteReturnsLog mocks base method.
func (m *MockStore) DeleteReturnsLog(arg0 context.Context, arg1 int64) error { func (m *MockStore) DeleteReturnsLog(arg0 context.Context, arg1 uint64) error {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteReturnsLog", arg0, arg1) ret := m.ctrl.Call(m, "DeleteReturnsLog", arg0, arg1)
ret0, _ := ret[0].(error) ret0, _ := ret[0].(error)
@ -375,7 +375,7 @@ func (mr *MockStoreMockRecorder) DeleteReturnsLog(arg0, arg1 any) *gomock.Call {
} }
// GetAccount mocks base method. // GetAccount mocks base method.
func (m *MockStore) GetAccount(arg0 context.Context, arg1 int64) (db.Account, error) { func (m *MockStore) GetAccount(arg0 context.Context, arg1 uint64) (db.Account, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccount", arg0, arg1) ret := m.ctrl.Call(m, "GetAccount", arg0, arg1)
ret0, _ := ret[0].(db.Account) ret0, _ := ret[0].(db.Account)
@ -405,7 +405,7 @@ func (mr *MockStoreMockRecorder) GetAccountByEmail(arg0, arg1 any) *gomock.Call
} }
// GetAccountForUpdate mocks base method. // GetAccountForUpdate mocks base method.
func (m *MockStore) GetAccountForUpdate(arg0 context.Context, arg1 int64) (db.Account, error) { func (m *MockStore) GetAccountForUpdate(arg0 context.Context, arg1 uint64) (db.Account, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAccountForUpdate", arg0, arg1) ret := m.ctrl.Call(m, "GetAccountForUpdate", arg0, arg1)
ret0, _ := ret[0].(db.Account) ret0, _ := ret[0].(db.Account)
@ -420,7 +420,7 @@ func (mr *MockStoreMockRecorder) GetAccountForUpdate(arg0, arg1 any) *gomock.Cal
} }
// GetDocument mocks base method. // GetDocument mocks base method.
func (m *MockStore) GetDocument(arg0 context.Context, arg1 int64) (db.Document, error) { func (m *MockStore) GetDocument(arg0 context.Context, arg1 uint64) (db.Document, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDocument", arg0, arg1) ret := m.ctrl.Call(m, "GetDocument", arg0, arg1)
ret0, _ := ret[0].(db.Document) ret0, _ := ret[0].(db.Document)
@ -435,7 +435,7 @@ func (mr *MockStoreMockRecorder) GetDocument(arg0, arg1 any) *gomock.Call {
} }
// GetMail mocks base method. // GetMail mocks base method.
func (m *MockStore) GetMail(arg0 context.Context, arg1 int64) (db.Mail, error) { func (m *MockStore) GetMail(arg0 context.Context, arg1 uint64) (db.Mail, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMail", arg0, arg1) ret := m.ctrl.Call(m, "GetMail", arg0, arg1)
ret0, _ := ret[0].(db.Mail) ret0, _ := ret[0].(db.Mail)
@ -450,7 +450,7 @@ func (mr *MockStoreMockRecorder) GetMail(arg0, arg1 any) *gomock.Call {
} }
// GetPayment mocks base method. // GetPayment mocks base method.
func (m *MockStore) GetPayment(arg0 context.Context, arg1 int64) (db.Payment, error) { func (m *MockStore) GetPayment(arg0 context.Context, arg1 uint64) (db.Payment, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPayment", arg0, arg1) ret := m.ctrl.Call(m, "GetPayment", arg0, arg1)
ret0, _ := ret[0].(db.Payment) ret0, _ := ret[0].(db.Payment)
@ -465,7 +465,7 @@ func (mr *MockStoreMockRecorder) GetPayment(arg0, arg1 any) *gomock.Call {
} }
// GetPerson mocks base method. // GetPerson mocks base method.
func (m *MockStore) GetPerson(arg0 context.Context, arg1 int64) (db.Person, error) { func (m *MockStore) GetPerson(arg0 context.Context, arg1 uint64) (db.Person, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPerson", arg0, arg1) ret := m.ctrl.Call(m, "GetPerson", arg0, arg1)
ret0, _ := ret[0].(db.Person) ret0, _ := ret[0].(db.Person)
@ -480,7 +480,7 @@ func (mr *MockStoreMockRecorder) GetPerson(arg0, arg1 any) *gomock.Call {
} }
// GetProvider mocks base method. // GetProvider mocks base method.
func (m *MockStore) GetProvider(arg0 context.Context, arg1 int64) (db.Provider, error) { func (m *MockStore) GetProvider(arg0 context.Context, arg1 uint64) (db.Provider, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetProvider", arg0, arg1) ret := m.ctrl.Call(m, "GetProvider", arg0, arg1)
ret0, _ := ret[0].(db.Provider) ret0, _ := ret[0].(db.Provider)
@ -495,7 +495,7 @@ func (mr *MockStoreMockRecorder) GetProvider(arg0, arg1 any) *gomock.Call {
} }
// GetReturn mocks base method. // GetReturn mocks base method.
func (m *MockStore) GetReturn(arg0 context.Context, arg1 int64) (db.Return, error) { func (m *MockStore) GetReturn(arg0 context.Context, arg1 uint64) (db.Return, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetReturn", arg0, arg1) ret := m.ctrl.Call(m, "GetReturn", arg0, arg1)
ret0, _ := ret[0].(db.Return) ret0, _ := ret[0].(db.Return)
@ -525,7 +525,7 @@ func (mr *MockStoreMockRecorder) GetReturns(arg0, arg1 any) *gomock.Call {
} }
// GetReturnsLog mocks base method. // GetReturnsLog mocks base method.
func (m *MockStore) GetReturnsLog(arg0 context.Context, arg1 int64) (db.ReturnsLog, error) { func (m *MockStore) GetReturnsLog(arg0 context.Context, arg1 uint64) (db.ReturnsLog, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetReturnsLog", arg0, arg1) ret := m.ctrl.Call(m, "GetReturnsLog", arg0, arg1)
ret0, _ := ret[0].(db.ReturnsLog) ret0, _ := ret[0].(db.ReturnsLog)

View File

@ -106,7 +106,7 @@ DELETE FROM accounts
WHERE "id" = $1 WHERE "id" = $1
` `
func (q *Queries) DeleteAccount(ctx context.Context, id int64) error { func (q *Queries) DeleteAccount(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deleteAccount, id) _, err := q.db.ExecContext(ctx, deleteAccount, id)
return err return err
} }
@ -116,7 +116,7 @@ SELECT id, permission_level, passwordhash, firstname, lastname, birthday, privac
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetAccount(ctx context.Context, id int64) (Account, error) { func (q *Queries) GetAccount(ctx context.Context, id uint64) (Account, error) {
row := q.db.QueryRowContext(ctx, getAccount, id) row := q.db.QueryRowContext(ctx, getAccount, id)
var i Account var i Account
err := row.Scan( err := row.Scan(
@ -179,7 +179,7 @@ WHERE "id" = $1 LIMIT 1
FOR NO KEY UPDATE FOR NO KEY UPDATE
` `
func (q *Queries) GetAccountForUpdate(ctx context.Context, id int64) (Account, error) { func (q *Queries) GetAccountForUpdate(ctx context.Context, id uint64) (Account, error) {
row := q.db.QueryRowContext(ctx, getAccountForUpdate, id) row := q.db.QueryRowContext(ctx, getAccountForUpdate, id)
var i Account var i Account
err := row.Scan( err := row.Scan(
@ -279,7 +279,7 @@ RETURNING id, permission_level, passwordhash, firstname, lastname, birthday, pri
` `
type UpdateAccountParams struct { type UpdateAccountParams struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
Changer string `json:"changer"` Changer string `json:"changer"`
Passwordhash sql.NullString `json:"passwordhash"` Passwordhash sql.NullString `json:"passwordhash"`
Firstname sql.NullString `json:"firstname"` Firstname sql.NullString `json:"firstname"`
@ -347,7 +347,7 @@ type UpdateAccountPrivacyParams struct {
PrivacyAccepted sql.NullBool `json:"privacy_accepted"` PrivacyAccepted sql.NullBool `json:"privacy_accepted"`
PrivacyAcceptedDate sql.NullTime `json:"privacy_accepted_date"` PrivacyAcceptedDate sql.NullTime `json:"privacy_accepted_date"`
Changer string `json:"changer"` Changer string `json:"changer"`
ID int64 `json:"id"` ID uint64 `json:"id"`
} }
func (q *Queries) UpdateAccountPrivacy(ctx context.Context, arg UpdateAccountPrivacyParams) (Account, error) { func (q *Queries) UpdateAccountPrivacy(ctx context.Context, arg UpdateAccountPrivacyParams) (Account, error) {

View File

@ -123,7 +123,7 @@ DELETE FROM documents
WHERE "id" = $1 WHERE "id" = $1
` `
func (q *Queries) DeleteDocument(ctx context.Context, id int64) error { func (q *Queries) DeleteDocument(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deleteDocument, id) _, err := q.db.ExecContext(ctx, deleteDocument, id)
return err return err
} }
@ -133,7 +133,7 @@ SELECT id, person_id, name, type, path, url, valid, valid_date, validated_by, ma
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetDocument(ctx context.Context, id int64) (Document, error) { func (q *Queries) GetDocument(ctx context.Context, id uint64) (Document, error) {
row := q.db.QueryRowContext(ctx, getDocument, id) row := q.db.QueryRowContext(ctx, getDocument, id)
var i Document var i Document
err := row.Scan( err := row.Scan(
@ -168,7 +168,7 @@ RETURNING id, person_id, name, type, path, url, valid, valid_date, validated_by,
` `
type InvalidateDocumentParams struct { type InvalidateDocumentParams struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
Changer string `json:"changer"` Changer string `json:"changer"`
} }
@ -259,7 +259,7 @@ RETURNING id, person_id, name, type, path, url, valid, valid_date, validated_by,
` `
type UpdateDocumentParams struct { type UpdateDocumentParams struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
Changer string `json:"changer"` Changer string `json:"changer"`
PersonID sql.NullInt64 `json:"person_id"` PersonID sql.NullInt64 `json:"person_id"`
Name sql.NullString `json:"name"` Name sql.NullString `json:"name"`
@ -311,7 +311,7 @@ RETURNING id, person_id, name, type, path, url, valid, valid_date, validated_by,
` `
type ValidateDocumentParams struct { type ValidateDocumentParams struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
ValidatedBy sql.NullString `json:"validated_by"` ValidatedBy sql.NullString `json:"validated_by"`
} }

View File

@ -19,7 +19,7 @@ func createRandomDocumentUpload(t *testing.T) Document {
arg := CreateDocumentUploadParams{ arg := CreateDocumentUploadParams{
PersonID: sql.NullInt64{ PersonID: sql.NullInt64{
Valid: true, Valid: true,
Int64: person.ID, Int64: int64(person.ID),
}, },
Name: util.RandomString(20), Name: util.RandomString(20),
Type: util.RandomString(5), Type: util.RandomString(5),
@ -57,7 +57,7 @@ func TestCreateDocumentMail(t *testing.T) {
arg := CreateDocumentMailParams{ arg := CreateDocumentMailParams{
MailID: sql.NullInt64{ MailID: sql.NullInt64{
Valid: true, Valid: true,
Int64: mail.ID, Int64: int64(mail.ID),
}, },
Name: util.RandomString(20), Name: util.RandomString(20),
Type: util.RandomString(5), Type: util.RandomString(5),

View File

@ -89,7 +89,7 @@ WHERE "id" = $1
// //
// WHERE "id" = $1 // WHERE "id" = $1
// RETURNING *; // RETURNING *;
func (q *Queries) DeleteMail(ctx context.Context, id int64) error { func (q *Queries) DeleteMail(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deleteMail, id) _, err := q.db.ExecContext(ctx, deleteMail, id)
return err return err
} }
@ -99,7 +99,7 @@ SELECT id, "from", "to", cc, timestamp, subject, body, creator, created, changer
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetMail(ctx context.Context, id int64) (Mail, error) { func (q *Queries) GetMail(ctx context.Context, id uint64) (Mail, error) {
row := q.db.QueryRowContext(ctx, getMail, id) row := q.db.QueryRowContext(ctx, getMail, id)
var i Mail var i Mail
err := row.Scan( err := row.Scan(

View File

@ -12,7 +12,7 @@ import (
) )
type Account struct { type Account struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
PermissionLevel int32 `json:"permission_level"` PermissionLevel int32 `json:"permission_level"`
Passwordhash string `json:"passwordhash"` Passwordhash string `json:"passwordhash"`
Firstname string `json:"firstname"` Firstname string `json:"firstname"`
@ -33,7 +33,7 @@ type Account struct {
} }
type Document struct { type Document struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
PersonID sql.NullInt64 `json:"person_id"` PersonID sql.NullInt64 `json:"person_id"`
Name string `json:"name"` Name string `json:"name"`
Type string `json:"type"` Type string `json:"type"`
@ -50,7 +50,7 @@ type Document struct {
} }
type Mail struct { type Mail struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
From string `json:"from"` From string `json:"from"`
To []string `json:"to"` To []string `json:"to"`
Cc []string `json:"cc"` Cc []string `json:"cc"`
@ -64,7 +64,7 @@ type Mail struct {
} }
type Payment struct { type Payment struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
AccountID int64 `json:"account_id"` AccountID int64 `json:"account_id"`
PaymentCategory string `json:"payment_category"` PaymentCategory string `json:"payment_category"`
Bankname sql.NullString `json:"bankname"` Bankname sql.NullString `json:"bankname"`
@ -81,7 +81,7 @@ type Payment struct {
} }
type Person struct { type Person struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
AccountID int64 `json:"account_id"` AccountID int64 `json:"account_id"`
Firstname string `json:"firstname"` Firstname string `json:"firstname"`
Lastname string `json:"lastname"` Lastname string `json:"lastname"`
@ -97,7 +97,7 @@ type Person struct {
} }
type Provider struct { type Provider struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Description string `json:"description"` Description string `json:"description"`
Category string `json:"category"` Category string `json:"category"`
@ -109,7 +109,7 @@ type Provider struct {
} }
type Return struct { type Return struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
PersonID int64 `json:"person_id"` PersonID int64 `json:"person_id"`
ProviderID int64 `json:"provider_id"` ProviderID int64 `json:"provider_id"`
Name string `json:"name"` Name string `json:"name"`
@ -124,7 +124,7 @@ type Return struct {
} }
type ReturnsLog struct { type ReturnsLog struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
ReturnID int64 `json:"return_id"` ReturnID int64 `json:"return_id"`
MailID int64 `json:"mail_id"` MailID int64 `json:"mail_id"`
Status sql.NullString `json:"status"` Status sql.NullString `json:"status"`

View File

@ -81,7 +81,7 @@ DELETE FROM payments
WHERE "id" = $1 WHERE "id" = $1
` `
func (q *Queries) DeletePayment(ctx context.Context, id int64) error { func (q *Queries) DeletePayment(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deletePayment, id) _, err := q.db.ExecContext(ctx, deletePayment, id)
return err return err
} }
@ -91,7 +91,7 @@ SELECT id, account_id, payment_category, bankname, "IBAN", "BIC", paypal_account
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetPayment(ctx context.Context, id int64) (Payment, error) { func (q *Queries) GetPayment(ctx context.Context, id uint64) (Payment, error) {
row := q.db.QueryRowContext(ctx, getPayment, id) row := q.db.QueryRowContext(ctx, getPayment, id)
var i Payment var i Payment
err := row.Scan( err := row.Scan(
@ -176,7 +176,7 @@ RETURNING id, account_id, payment_category, bankname, "IBAN", "BIC", paypal_acco
` `
type UpdatePaymentParams struct { type UpdatePaymentParams struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
Changer string `json:"changer"` Changer string `json:"changer"`
AccountID sql.NullInt64 `json:"account_id"` AccountID sql.NullInt64 `json:"account_id"`
PaymentCategory sql.NullString `json:"payment_category"` PaymentCategory sql.NullString `json:"payment_category"`

View File

@ -17,7 +17,7 @@ func createRandomPayment(t *testing.T) Payment {
creator := util.RandomName() creator := util.RandomName()
arg := CreatePaymentParams{ arg := CreatePaymentParams{
AccountID: account.ID, AccountID: int64(account.ID),
PaymentCategory: util.RandomName(), PaymentCategory: util.RandomName(),
Bankname: sql.NullString{ Bankname: sql.NullString{
Valid: true, Valid: true,

View File

@ -78,7 +78,7 @@ DELETE FROM persons
WHERE "id" = $1 WHERE "id" = $1
` `
func (q *Queries) DeletePerson(ctx context.Context, id int64) error { func (q *Queries) DeletePerson(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deletePerson, id) _, err := q.db.ExecContext(ctx, deletePerson, id)
return err return err
} }
@ -88,7 +88,7 @@ SELECT id, account_id, firstname, lastname, birthday, city, zip, street, country
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetPerson(ctx context.Context, id int64) (Person, error) { func (q *Queries) GetPerson(ctx context.Context, id uint64) (Person, error) {
row := q.db.QueryRowContext(ctx, getPerson, id) row := q.db.QueryRowContext(ctx, getPerson, id)
var i Person var i Person
err := row.Scan( err := row.Scan(
@ -211,7 +211,7 @@ RETURNING id, account_id, firstname, lastname, birthday, city, zip, street, coun
` `
type UpdatePersonParams struct { type UpdatePersonParams struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
Changer string `json:"changer"` Changer string `json:"changer"`
AccountID sql.NullInt64 `json:"account_id"` AccountID sql.NullInt64 `json:"account_id"`
Firstname sql.NullString `json:"firstname"` Firstname sql.NullString `json:"firstname"`

View File

@ -17,7 +17,7 @@ func createRandomPerson(t *testing.T) Person {
creator := util.RandomName() creator := util.RandomName()
arg := CreatePersonParams{ arg := CreatePersonParams{
AccountID: account.ID, AccountID: int64(account.ID),
Firstname: util.RandomName(), Firstname: util.RandomName(),
Lastname: util.RandomName(), Lastname: util.RandomName(),
Birthday: time.Date(1990, 1, 1, 0, 0, 0, 0, time.UTC), Birthday: time.Date(1990, 1, 1, 0, 0, 0, 0, time.UTC),

View File

@ -61,7 +61,7 @@ DELETE FROM providers
WHERE "id" = $1 WHERE "id" = $1
` `
func (q *Queries) DeleteProvider(ctx context.Context, id int64) error { func (q *Queries) DeleteProvider(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deleteProvider, id) _, err := q.db.ExecContext(ctx, deleteProvider, id)
return err return err
} }
@ -71,7 +71,7 @@ SELECT id, name, description, category, email, creator, created, changer, change
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetProvider(ctx context.Context, id int64) (Provider, error) { func (q *Queries) GetProvider(ctx context.Context, id uint64) (Provider, error) {
row := q.db.QueryRowContext(ctx, getProvider, id) row := q.db.QueryRowContext(ctx, getProvider, id)
var i Provider var i Provider
err := row.Scan( err := row.Scan(
@ -147,7 +147,7 @@ RETURNING id, name, description, category, email, creator, created, changer, cha
` `
type UpdateProviderParams struct { type UpdateProviderParams struct {
ID int64 `json:"id"` ID uint64 `json:"id"`
Changer string `json:"changer"` Changer string `json:"changer"`
Name sql.NullString `json:"name"` Name sql.NullString `json:"name"`
Description sql.NullString `json:"description"` Description sql.NullString `json:"description"`

View File

@ -23,8 +23,8 @@ type Querier interface {
CreateReturn(ctx context.Context, arg CreateReturnParams) (Return, error) CreateReturn(ctx context.Context, arg CreateReturnParams) (Return, error)
CreateReturnsLog(ctx context.Context, arg CreateReturnsLogParams) (ReturnsLog, error) CreateReturnsLog(ctx context.Context, arg CreateReturnsLogParams) (ReturnsLog, error)
CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
DeleteAccount(ctx context.Context, id int64) error DeleteAccount(ctx context.Context, id uint64) error
DeleteDocument(ctx context.Context, id int64) error DeleteDocument(ctx context.Context, id uint64) error
// -- name: UpdateMail :one // -- name: UpdateMail :one
// UPDATE mails // UPDATE mails
// SET // SET
@ -38,23 +38,23 @@ type Querier interface {
// changed = now() // changed = now()
// WHERE "id" = $1 // WHERE "id" = $1
// RETURNING *; // RETURNING *;
DeleteMail(ctx context.Context, id int64) error DeleteMail(ctx context.Context, id uint64) error
DeletePayment(ctx context.Context, id int64) error DeletePayment(ctx context.Context, id uint64) error
DeletePerson(ctx context.Context, id int64) error DeletePerson(ctx context.Context, id uint64) error
DeleteProvider(ctx context.Context, id int64) error DeleteProvider(ctx context.Context, id uint64) error
DeleteReturn(ctx context.Context, id int64) error DeleteReturn(ctx context.Context, id uint64) error
DeleteReturnsLog(ctx context.Context, id int64) error DeleteReturnsLog(ctx context.Context, id uint64) error
GetAccount(ctx context.Context, id int64) (Account, error) GetAccount(ctx context.Context, id uint64) (Account, error)
GetAccountByEmail(ctx context.Context, email string) (Account, error) GetAccountByEmail(ctx context.Context, email string) (Account, error)
GetAccountForUpdate(ctx context.Context, id int64) (Account, error) GetAccountForUpdate(ctx context.Context, id uint64) (Account, error)
GetDocument(ctx context.Context, id int64) (Document, error) GetDocument(ctx context.Context, id uint64) (Document, error)
GetMail(ctx context.Context, id int64) (Mail, error) GetMail(ctx context.Context, id uint64) (Mail, error)
GetPayment(ctx context.Context, id int64) (Payment, error) GetPayment(ctx context.Context, id uint64) (Payment, error)
GetPerson(ctx context.Context, id int64) (Person, error) GetPerson(ctx context.Context, id uint64) (Person, error)
GetProvider(ctx context.Context, id int64) (Provider, error) GetProvider(ctx context.Context, id uint64) (Provider, error)
GetReturn(ctx context.Context, id int64) (Return, error) GetReturn(ctx context.Context, id uint64) (Return, error)
GetReturns(ctx context.Context, id int64) ([]Return, error) GetReturns(ctx context.Context, id int64) ([]Return, error)
GetReturnsLog(ctx context.Context, id int64) (ReturnsLog, error) GetReturnsLog(ctx context.Context, id uint64) (ReturnsLog, error)
GetSession(ctx context.Context, id uuid.UUID) (Session, error) GetSession(ctx context.Context, id uuid.UUID) (Session, error)
InvalidateDocument(ctx context.Context, arg InvalidateDocumentParams) (Document, error) InvalidateDocument(ctx context.Context, arg InvalidateDocumentParams) (Document, error)
ListAccounts(ctx context.Context, arg ListAccountsParams) ([]Account, error) ListAccounts(ctx context.Context, arg ListAccountsParams) ([]Account, error)

View File

@ -116,7 +116,7 @@ DELETE FROM returns
WHERE "id" = $1 WHERE "id" = $1
` `
func (q *Queries) DeleteReturn(ctx context.Context, id int64) error { func (q *Queries) DeleteReturn(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deleteReturn, id) _, err := q.db.ExecContext(ctx, deleteReturn, id)
return err return err
} }
@ -126,7 +126,7 @@ SELECT id, person_id, provider_id, name, description, category, email, status, c
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetReturn(ctx context.Context, id int64) (Return, error) { func (q *Queries) GetReturn(ctx context.Context, id uint64) (Return, error) {
row := q.db.QueryRowContext(ctx, getReturn, id) row := q.db.QueryRowContext(ctx, getReturn, id)
var i Return var i Return
err := row.Scan( err := row.Scan(
@ -219,7 +219,7 @@ type UpdateReturnParams struct {
Email sql.NullString `json:"email"` Email sql.NullString `json:"email"`
Status sql.NullString `json:"status"` Status sql.NullString `json:"status"`
Changer string `json:"changer"` Changer string `json:"changer"`
ID int64 `json:"id"` ID uint64 `json:"id"`
} }
func (q *Queries) UpdateReturn(ctx context.Context, arg UpdateReturnParams) (Return, error) { func (q *Queries) UpdateReturn(ctx context.Context, arg UpdateReturnParams) (Return, error) {

View File

@ -18,8 +18,8 @@ func createRandomReturn(t *testing.T) Return {
creator := util.RandomName() creator := util.RandomName()
arg := CreateReturnParams{ arg := CreateReturnParams{
PersonID: person.ID, PersonID: int64(person.ID),
ProviderID: provider.ID, ProviderID: int64(provider.ID),
Status: util.RandomString(7), Status: util.RandomString(7),
Name: util.RandomName(), Name: util.RandomName(),
Description: util.RandomString(30), Description: util.RandomString(30),

View File

@ -59,7 +59,7 @@ DELETE FROM "returnsLog"
WHERE "id" = $1 WHERE "id" = $1
` `
func (q *Queries) DeleteReturnsLog(ctx context.Context, id int64) error { func (q *Queries) DeleteReturnsLog(ctx context.Context, id uint64) error {
_, err := q.db.ExecContext(ctx, deleteReturnsLog, id) _, err := q.db.ExecContext(ctx, deleteReturnsLog, id)
return err return err
} }
@ -69,7 +69,7 @@ SELECT id, return_id, mail_id, status, creator, created, changer, changed FROM "
WHERE "id" = $1 LIMIT 1 WHERE "id" = $1 LIMIT 1
` `
func (q *Queries) GetReturnsLog(ctx context.Context, id int64) (ReturnsLog, error) { func (q *Queries) GetReturnsLog(ctx context.Context, id uint64) (ReturnsLog, error) {
row := q.db.QueryRowContext(ctx, getReturnsLog, id) row := q.db.QueryRowContext(ctx, getReturnsLog, id)
var i ReturnsLog var i ReturnsLog
err := row.Scan( err := row.Scan(
@ -146,7 +146,7 @@ type UpdateReturnsLogParams struct {
ReturnID sql.NullInt64 `json:"return_id"` ReturnID sql.NullInt64 `json:"return_id"`
MailID sql.NullInt64 `json:"mail_id"` MailID sql.NullInt64 `json:"mail_id"`
Status sql.NullString `json:"status"` Status sql.NullString `json:"status"`
ID int64 `json:"id"` ID uint64 `json:"id"`
} }
func (q *Queries) UpdateReturnsLog(ctx context.Context, arg UpdateReturnsLogParams) (ReturnsLog, error) { func (q *Queries) UpdateReturnsLog(ctx context.Context, arg UpdateReturnsLogParams) (ReturnsLog, error) {

View File

@ -18,8 +18,8 @@ func createRandomReturnsLog(t *testing.T) ReturnsLog {
creator := util.RandomName() creator := util.RandomName()
arg := CreateReturnsLogParams{ arg := CreateReturnsLogParams{
ReturnID: ret.ID, ReturnID: int64(ret.ID),
MailID: mail.ID, MailID: int64(mail.ID),
Status: sql.NullString{ Status: sql.NullString{
Valid: true, Valid: true,
String: util.RandomString(7), String: util.RandomString(7),

View File

@ -12,7 +12,7 @@ type Store interface {
UpdateAccountTx(ctx context.Context, arg UpdateAccountTxParams) (Account, error) UpdateAccountTx(ctx context.Context, arg UpdateAccountTxParams) (Account, error)
UpdateAccountPrivacyTx(ctx context.Context, arg UpdateAccountPrivacyTxParams) (Account, error) UpdateAccountPrivacyTx(ctx context.Context, arg UpdateAccountPrivacyTxParams) (Account, error)
CreatePersonTx(ctx context.Context, arg CreatePersonTxParams) (Person, error) CreatePersonTx(ctx context.Context, arg CreatePersonTxParams) (Person, error)
DeletePersonTx(ctx context.Context, id int64) error DeletePersonTx(ctx context.Context, id uint64) error
} }
// Store provides all functions to execute db queries and transactions // Store provides all functions to execute db queries and transactions

View File

@ -35,7 +35,7 @@ func (store *SQLStore) CreatePersonTx(ctx context.Context, arg CreatePersonTxPar
err = q.CloneProviders(ctx, CloneProvidersParams{ err = q.CloneProviders(ctx, CloneProvidersParams{
Creator: arg.Creator, Creator: arg.Creator,
PersonID: result.Person.ID, PersonID: int64(result.Person.ID),
}) })
return err return err
}) })

View File

@ -4,10 +4,10 @@ import (
"context" "context"
) )
func (store *SQLStore) DeletePersonTx(ctx context.Context, id int64) error { func (store *SQLStore) DeletePersonTx(ctx context.Context, id uint64) error {
err := store.execTx(ctx, func(q *Queries) error { err := store.execTx(ctx, func(q *Queries) error {
// TODO: Add removal of db.returnsLog entries. // TODO: #82 Add removal of db.returnsLog entries.
err := q.DeletePerson(ctx, id) err := q.DeletePerson(ctx, id)
if err != nil { if err != nil {

View File

@ -6,7 +6,7 @@ import (
) )
type UpdateAccountTxParams struct { type UpdateAccountTxParams struct {
ID int64 `json:"ID"` ID uint64 `json:"ID"`
Changer string `json:"changer"` Changer string `json:"changer"`
Passwordhash sql.NullString `json:"passwordhash"` Passwordhash sql.NullString `json:"passwordhash"`
Firstname sql.NullString `json:"firstname"` Firstname sql.NullString `json:"firstname"`

View File

@ -7,7 +7,7 @@ import (
) )
type UpdateAccountPrivacyTxParams struct { type UpdateAccountPrivacyTxParams struct {
ID int64 `json:"ID"` ID uint64 `json:"ID"`
Changer string `json:"changer"` Changer string `json:"changer"`
PrivacyAccepted *bool `json:"privacy_accepted"` PrivacyAccepted *bool `json:"privacy_accepted"`
} }

View File

@ -82,7 +82,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -116,16 +116,16 @@
{ {
"name": "pageId", "name": "pageId",
"in": "query", "in": "query",
"required": false, "required": true,
"type": "integer", "type": "integer",
"format": "int32" "format": "int64"
}, },
{ {
"name": "pageSize", "name": "pageSize",
"in": "query", "in": "query",
"required": false, "required": true,
"type": "integer", "type": "integer",
"format": "int32" "format": "int64"
} }
], ],
"tags": [ "tags": [
@ -308,7 +308,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -344,7 +344,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -380,7 +380,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -492,7 +492,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -528,7 +528,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -564,7 +564,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -638,7 +638,7 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
} }
], ],
"tags": [ "tags": [
@ -709,7 +709,7 @@
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"email": { "email": {
"type": "string" "type": "string"
@ -897,7 +897,7 @@
"properties": { "properties": {
"accountId": { "accountId": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"paymentCategory": { "paymentCategory": {
"type": "string" "type": "string"
@ -929,7 +929,6 @@
"required": [ "required": [
"accountId", "accountId",
"paymentCategory", "paymentCategory",
"paymentSystem",
"type" "type"
] ]
}, },
@ -958,7 +957,7 @@
"properties": { "properties": {
"accountId": { "accountId": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"firstname": { "firstname": {
"type": "string" "type": "string"
@ -987,6 +986,7 @@
"description": "Create an Person", "description": "Create an Person",
"title": "Create Person", "title": "Create Person",
"required": [ "required": [
"accountId",
"firstname", "firstname",
"lastname", "lastname",
"street", "street",
@ -1201,11 +1201,11 @@
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"accountId": { "accountId": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"paymentCategory": { "paymentCategory": {
"type": "string" "type": "string"
@ -1273,11 +1273,11 @@
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"accountId": { "accountId": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"firstname": { "firstname": {
"type": "string" "type": "string"
@ -1444,7 +1444,7 @@
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"email": { "email": {
"type": "string" "type": "string"
@ -1508,7 +1508,7 @@
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
"format": "int64" "format": "uint64"
}, },
"paymentCategory": { "paymentCategory": {
"type": "string" "type": "string"

View File

@ -31,7 +31,7 @@ func convertAccount(account db.Account) *pb.Account {
func convertPerson(person db.Person) *pb.Person { func convertPerson(person db.Person) *pb.Person {
return &pb.Person{ return &pb.Person{
Id: person.ID, Id: person.ID,
AccountId: person.AccountID, AccountId: uint64(person.AccountID),
Firstname: person.Firstname, Firstname: person.Firstname,
Lastname: person.Lastname, Lastname: person.Lastname,
Street: person.Street, Street: person.Street,
@ -62,7 +62,7 @@ func convertSession(session db.Session) *pb.Session {
func convertPayment(payment db.Payment) *pb.Payment { func convertPayment(payment db.Payment) *pb.Payment {
return &pb.Payment{ return &pb.Payment{
Id: payment.ID, Id: payment.ID,
AccountId: payment.AccountID, AccountId: uint64(payment.AccountID),
PaymentCategory: payment.PaymentCategory, PaymentCategory: payment.PaymentCategory,
Bankname: &payment.Bankname.String, Bankname: &payment.Bankname.String,
IBAN: &payment.IBAN.String, IBAN: &payment.IBAN.String,

View File

@ -38,8 +38,9 @@ func (server *Server) CreatePayment(ctx context.Context, req *pb.CreatePaymentRe
} }
} }
accountID := int64(req.GetAccountId())
arg := db.CreatePaymentParams{ arg := db.CreatePaymentParams{
AccountID: req.GetAccountId(), AccountID: accountID,
PaymentCategory: req.GetPaymentCategory(), PaymentCategory: req.GetPaymentCategory(),
Bankname: sql.NullString{ Bankname: sql.NullString{
Valid: req.GetBankname() != "", Valid: req.GetBankname() != "",

View File

@ -38,8 +38,9 @@ func (server *Server) CreatePerson(ctx context.Context, req *pb.CreatePersonRequ
} }
} }
accountID := int64(req.GetAccountId())
arg := db.CreatePersonTxParams{ arg := db.CreatePersonTxParams{
AccountID: req.GetAccountId(), AccountID: accountID,
Firstname: req.GetFirstname(), Firstname: req.GetFirstname(),
Lastname: req.GetLastname(), Lastname: req.GetLastname(),
Birthday: req.GetBirthday().AsTime(), Birthday: req.GetBirthday().AsTime(),

View File

@ -44,7 +44,10 @@ func (server *Server) DeletePayment(ctx context.Context, req *pb.DeletePaymentRe
return nil, status.Errorf(codes.Internal, "failed to get payment") return nil, status.Errorf(codes.Internal, "failed to get payment")
} }
if payment.AccountID != account.ID { paymentID := int64(req.GetId())
accountID := int64(account.ID)
if payment.AccountID != accountID {
if !server.isAdmin(ctx, authPayload) { if !server.isAdmin(ctx, authPayload) {
return nil, status.Error(codes.NotFound, "payment not found") return nil, status.Error(codes.NotFound, "payment not found")
} }
@ -57,7 +60,7 @@ func (server *Server) DeletePayment(ctx context.Context, req *pb.DeletePaymentRe
} }
rsp := &pb.DeletePaymentResponse{ rsp := &pb.DeletePaymentResponse{
Id: req.GetId(), Id: paymentID,
Deleted: true, Deleted: true,
} }
return rsp, nil return rsp, nil

View File

@ -44,7 +44,10 @@ func (server *Server) DeletePerson(ctx context.Context, req *pb.DeletePersonRequ
return nil, status.Errorf(codes.Internal, "failed to get person") return nil, status.Errorf(codes.Internal, "failed to get person")
} }
if person.AccountID != account.ID { personID := int64(person.ID)
accountID := int64(account.ID)
if person.AccountID != accountID {
if !server.isAdmin(ctx, authPayload) { if !server.isAdmin(ctx, authPayload) {
return nil, status.Error(codes.NotFound, "person not found") return nil, status.Error(codes.NotFound, "person not found")
} }
@ -57,7 +60,7 @@ func (server *Server) DeletePerson(ctx context.Context, req *pb.DeletePersonRequ
} }
rsp := &pb.DeletePersonResponse{ rsp := &pb.DeletePersonResponse{
Id: req.GetId(), Id: personID,
Deleted: true, Deleted: true,
} }
return rsp, nil return rsp, nil

View File

@ -44,7 +44,9 @@ func (server *Server) GetPayment(ctx context.Context, req *pb.GetPaymentRequest)
return nil, status.Error(codes.NotFound, "failed to get payments") return nil, status.Error(codes.NotFound, "failed to get payments")
} }
if account.ID != payment.AccountID { accountID := int64(account.ID)
if accountID != payment.AccountID {
if !server.isAdmin(ctx, authPayload) { if !server.isAdmin(ctx, authPayload) {
return nil, status.Error(codes.NotFound, "account not found") return nil, status.Error(codes.NotFound, "account not found")
} }

View File

@ -44,7 +44,9 @@ func (server *Server) GetPerson(ctx context.Context, req *pb.GetPersonRequest) (
return nil, status.Error(codes.NotFound, "failed to get persons") return nil, status.Error(codes.NotFound, "failed to get persons")
} }
if account.ID != person.AccountID { accountID := int64(account.ID)
if accountID != person.AccountID {
if !server.isAdmin(ctx, authPayload) { if !server.isAdmin(ctx, authPayload) {
return nil, status.Error(codes.NotFound, "account not found") return nil, status.Error(codes.NotFound, "account not found")
} }

View File

@ -24,8 +24,8 @@ func (server *Server) ListAccounts(ctx context.Context, req *pb.ListAccountsRequ
} }
arg := db.ListAccountsParams{ arg := db.ListAccountsParams{
Limit: req.GetPageSize(), Limit: int32(req.GetPageSize()),
Offset: (req.GetPageId() - 1) * req.GetPageSize(), Offset: int32((req.GetPageId() - 1) * req.GetPageSize()),
} }
dbAccounts, err := server.store.ListAccounts(ctx, arg) dbAccounts, err := server.store.ListAccounts(ctx, arg)

View File

@ -42,7 +42,9 @@ func (server *Server) ListPayments(ctx context.Context, req *pb.ListPaymentsRequ
} }
} }
dbPayments, err := server.store.ListPayments(ctx, req.GetAccountId()) accountID := int64(account.ID)
dbPayments, err := server.store.ListPayments(ctx, accountID)
if err != nil { if err != nil {
if errors.Is(err, sql.ErrNoRows) { if errors.Is(err, sql.ErrNoRows) {
return nil, status.Error(codes.NotFound, "no payments found") return nil, status.Error(codes.NotFound, "no payments found")

View File

@ -42,7 +42,9 @@ func (server *Server) ListPersons(ctx context.Context, req *pb.ListPersonsReques
} }
} }
dbPersons, err := server.store.ListPersons(ctx, req.GetAccountId()) accountID := int64(account.ID)
dbPersons, err := server.store.ListPersons(ctx, accountID)
if err != nil { if err != nil {
if errors.Is(err, sql.ErrNoRows) { if errors.Is(err, sql.ErrNoRows) {
return nil, status.Error(codes.NotFound, "no persons found") return nil, status.Error(codes.NotFound, "no persons found")

View File

@ -46,7 +46,9 @@ func (server *Server) UpdatePayment(ctx context.Context, req *pb.UpdatePaymentRe
return nil, status.Error(codes.Internal, "failed to get payment") return nil, status.Error(codes.Internal, "failed to get payment")
} }
if dbPayment.AccountID != account.ID { accountID := int64(account.ID)
if dbPayment.AccountID != accountID {
if !server.isAdmin(ctx, authPayload) { if !server.isAdmin(ctx, authPayload) {
return nil, status.Error(codes.NotFound, "payment not found") return nil, status.Error(codes.NotFound, "payment not found")
} }

View File

@ -27,7 +27,7 @@ type Account struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Firstname string `protobuf:"bytes,3,opt,name=firstname,proto3" json:"firstname,omitempty"` Firstname string `protobuf:"bytes,3,opt,name=firstname,proto3" json:"firstname,omitempty"`
Lastname string `protobuf:"bytes,4,opt,name=lastname,proto3" json:"lastname,omitempty"` Lastname string `protobuf:"bytes,4,opt,name=lastname,proto3" json:"lastname,omitempty"`
@ -78,7 +78,7 @@ func (*Account) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{0} return file_account_proto_rawDescGZIP(), []int{0}
} }
func (x *Account) GetId() int64 { func (x *Account) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -207,7 +207,7 @@ var file_account_proto_rawDesc = []byte{
0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x09, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x09, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74,

View File

@ -27,8 +27,8 @@ type Payment struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountId uint64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
PaymentCategory string `protobuf:"bytes,3,opt,name=payment_category,json=paymentCategory,proto3" json:"payment_category,omitempty"` PaymentCategory string `protobuf:"bytes,3,opt,name=payment_category,json=paymentCategory,proto3" json:"payment_category,omitempty"`
Bankname *string `protobuf:"bytes,4,opt,name=bankname,proto3,oneof" json:"bankname,omitempty"` Bankname *string `protobuf:"bytes,4,opt,name=bankname,proto3,oneof" json:"bankname,omitempty"`
IBAN *string `protobuf:"bytes,5,opt,name=IBAN,proto3,oneof" json:"IBAN,omitempty"` IBAN *string `protobuf:"bytes,5,opt,name=IBAN,proto3,oneof" json:"IBAN,omitempty"`
@ -75,14 +75,14 @@ func (*Payment) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{0} return file_payment_proto_rawDescGZIP(), []int{0}
} }
func (x *Payment) GetId() int64 { func (x *Payment) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
return 0 return 0
} }
func (x *Payment) GetAccountId() int64 { func (x *Payment) GetAccountId() uint64 {
if x != nil { if x != nil {
return x.AccountId return x.AccountId
} }
@ -183,9 +183,9 @@ var file_payment_proto_rawDesc = []byte{
0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x07, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x07, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12,
0x29, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65,
0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x08, 0x62, 0x61, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x08, 0x62, 0x61,

View File

@ -27,8 +27,8 @@ type Person struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountId uint64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
Firstname string `protobuf:"bytes,3,opt,name=firstname,proto3" json:"firstname,omitempty"` Firstname string `protobuf:"bytes,3,opt,name=firstname,proto3" json:"firstname,omitempty"`
Lastname string `protobuf:"bytes,4,opt,name=lastname,proto3" json:"lastname,omitempty"` Lastname string `protobuf:"bytes,4,opt,name=lastname,proto3" json:"lastname,omitempty"`
Street string `protobuf:"bytes,5,opt,name=street,proto3" json:"street,omitempty"` Street string `protobuf:"bytes,5,opt,name=street,proto3" json:"street,omitempty"`
@ -74,14 +74,14 @@ func (*Person) Descriptor() ([]byte, []int) {
return file_person_proto_rawDescGZIP(), []int{0} return file_person_proto_rawDescGZIP(), []int{0}
} }
func (x *Person) GetId() int64 { func (x *Person) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
return 0 return 0
} }
func (x *Person) GetAccountId() int64 { func (x *Person) GetAccountId() uint64 {
if x != nil { if x != nil {
return x.AccountId return x.AccountId
} }
@ -175,9 +175,9 @@ var file_person_proto_rawDesc = []byte{
0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x07, 0x0a, 0x06, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x0e, 0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x07, 0x0a, 0x06, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x0e,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d,
0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a,
0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c,
0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c,

View File

@ -26,7 +26,7 @@ type CreatePaymentRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
PaymentCategory string `protobuf:"bytes,2,opt,name=payment_category,json=paymentCategory,proto3" json:"payment_category,omitempty"` PaymentCategory string `protobuf:"bytes,2,opt,name=payment_category,json=paymentCategory,proto3" json:"payment_category,omitempty"`
Bankname *string `protobuf:"bytes,3,opt,name=bankname,proto3,oneof" json:"bankname,omitempty"` Bankname *string `protobuf:"bytes,3,opt,name=bankname,proto3,oneof" json:"bankname,omitempty"`
IBAN *string `protobuf:"bytes,4,opt,name=IBAN,proto3,oneof" json:"IBAN,omitempty"` IBAN *string `protobuf:"bytes,4,opt,name=IBAN,proto3,oneof" json:"IBAN,omitempty"`
@ -69,7 +69,7 @@ func (*CreatePaymentRequest) Descriptor() ([]byte, []int) {
return file_rpc_create_payment_proto_rawDescGZIP(), []int{0} return file_rpc_create_payment_proto_rawDescGZIP(), []int{0}
} }
func (x *CreatePaymentRequest) GetAccountId() int64 { func (x *CreatePaymentRequest) GetAccountId() uint64 {
if x != nil { if x != nil {
return x.AccountId return x.AccountId
} }
@ -187,10 +187,10 @@ var file_rpc_create_payment_proto_rawDesc = []byte{
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61,
0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e,
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d,
0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x05, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x05,
0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
@ -208,40 +208,39 @@ var file_rpc_create_payment_proto_rawDesc = []byte{
0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65,
0x6e, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x6e, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x74,
0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x3a,
0xaa, 0x02, 0x92, 0x41, 0xa6, 0x02, 0x0a, 0x5b, 0x2a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x99, 0x02, 0x92, 0x41, 0x95, 0x02, 0x0a, 0x4a, 0x2a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x20, 0x61, 0x6e, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0xd2, 0x01, 0x0a, 0x61, 0x63, 0x20, 0x61, 0x6e, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0xd2, 0x01, 0x0a, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0xd2, 0x01, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0xd2, 0x01, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65,
0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0xd2, 0x01, 0x0e, 0x70, 0x61, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0xd2, 0x01, 0x04, 0x74, 0x79,
0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xd2, 0x01, 0x04, 0x74, 0x70, 0x65, 0x32, 0xc6, 0x01, 0x7b, 0x22, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69,
0x79, 0x70, 0x65, 0x32, 0xc6, 0x01, 0x7b, 0x22, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x22, 0x3a, 0x20, 0x22, 0x31, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
0x69, 0x64, 0x22, 0x3a, 0x20, 0x22, 0x31, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x42,
0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x44, 0x3a, 0x20, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x79,
0x42, 0x44, 0x3a, 0x20, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x70, 0x61, 0x6c, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x6a,
0x79, 0x70, 0x61, 0x6c, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x6f, 0x68, 0x6e, 0x2e, 0x64, 0x6f, 0x65, 0x40, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e,
0x6a, 0x6f, 0x68, 0x6e, 0x2e, 0x64, 0x6f, 0x65, 0x40, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x5f, 0x69, 0x64,
0x2e, 0x63, 0x6f, 0x6d, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x5f, 0x69, 0x22, 0x3a, 0x20, 0x22, 0x74, 0x68, 0x69, 0x73, 0x2d, 0x69, 0x73, 0x2d, 0x61, 0x2d, 0x70, 0x61,
0x64, 0x22, 0x3a, 0x20, 0x22, 0x74, 0x68, 0x69, 0x73, 0x2d, 0x69, 0x73, 0x2d, 0x61, 0x2d, 0x70, 0x79, 0x70, 0x61, 0x6c, 0x2d, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x79, 0x6d, 0x65,
0x61, 0x79, 0x70, 0x61, 0x6c, 0x2d, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x79, 0x6d, 0x6e, 0x74, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x42, 0x44,
0x65, 0x6e, 0x74, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x42, 0x3a, 0x20, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22,
0x44, 0x3a, 0x20, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2c, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x42, 0x44, 0x3a, 0x20,
0x22, 0x2c, 0x20, 0x22, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x54, 0x42, 0x44, 0x3a, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x22, 0x7d, 0x42, 0x0b, 0x0a, 0x09, 0x5f,
0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x22, 0x7d, 0x42, 0x0b, 0x0a, 0x09, 0x62, 0x61, 0x6e, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x49, 0x42, 0x41,
0x5f, 0x62, 0x61, 0x6e, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x49, 0x42, 0x4e, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x42, 0x49, 0x43, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x61,
0x41, 0x4e, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x42, 0x49, 0x43, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x79, 0x70, 0x61, 0x6c, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0c, 0x0a, 0x0a,
0x61, 0x79, 0x70, 0x61, 0x6c, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0c, 0x0a, 0x5f, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70,
0x0a, 0x5f, 0x70, 0x61, 0x79, 0x70, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x78, 0x0a,
0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x78, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65,
0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x79,
0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0x92, 0x41, 0x00, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65,
0x79, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0x92, 0x41, 0x00, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x6e, 0x74, 0x3a, 0x33, 0x92, 0x41, 0x30, 0x0a, 0x2e, 0x2a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x6e, 0x74, 0x3a, 0x33, 0x92, 0x41, 0x30, 0x0a, 0x2e, 0x2a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x65, 0x64, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x1b, 0x52, 0x65, 0x74, 0x75,
0x74, 0x65, 0x64, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x1b, 0x52, 0x65, 0x74, 0x72, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20,
0x75, 0x72, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x19, 0x5a, 0x17, 0x67, 0x69, 0x74, 0x68, 0x75,
0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x19, 0x5a, 0x17, 0x67, 0x69, 0x74, 0x68, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x73, 0x73, 0x63, 0x62, 0x2f, 0x64, 0x66, 0x2f,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x73, 0x73, 0x63, 0x62, 0x2f, 0x64, 0x66, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (

View File

@ -27,7 +27,7 @@ type CreatePersonRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
Firstname string `protobuf:"bytes,2,opt,name=firstname,proto3" json:"firstname,omitempty"` Firstname string `protobuf:"bytes,2,opt,name=firstname,proto3" json:"firstname,omitempty"`
Lastname string `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"` Lastname string `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"`
Street string `protobuf:"bytes,4,opt,name=street,proto3" json:"street,omitempty"` Street string `protobuf:"bytes,4,opt,name=street,proto3" json:"street,omitempty"`
@ -69,7 +69,7 @@ func (*CreatePersonRequest) Descriptor() ([]byte, []int) {
return file_rpc_create_person_proto_rawDescGZIP(), []int{0} return file_rpc_create_person_proto_rawDescGZIP(), []int{0}
} }
func (x *CreatePersonRequest) GetAccountId() int64 { func (x *CreatePersonRequest) GetAccountId() uint64 {
if x != nil { if x != nil {
return x.AccountId return x.AccountId
} }
@ -182,10 +182,10 @@ var file_rpc_create_person_proto_rawDesc = []byte{
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61,
0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e,
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c,
0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x04, 0x0a, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x04, 0x0a,
0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
@ -200,34 +200,35 @@ var file_rpc_create_person_proto_rawDesc = []byte{
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x42, 0x1b, 0x92, 0x41, 0x18, 0x4a, 0x16, 0x22, 0x31, 0x39, 0x39, 0x30, 0x2d, 0x61, 0x6d, 0x70, 0x42, 0x1b, 0x92, 0x41, 0x18, 0x4a, 0x16, 0x22, 0x31, 0x39, 0x39, 0x30, 0x2d,
0x31, 0x30, 0x2d, 0x30, 0x35, 0x54, 0x30, 0x30, 0x3a, 0x30, 0x30, 0x3a, 0x30, 0x30, 0x5a, 0x22, 0x31, 0x30, 0x2d, 0x30, 0x35, 0x54, 0x30, 0x30, 0x3a, 0x30, 0x30, 0x3a, 0x30, 0x30, 0x5a, 0x22,
0x52, 0x08, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x3a, 0x9c, 0x02, 0x92, 0x41, 0x98, 0x52, 0x08, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x3a, 0xa9, 0x02, 0x92, 0x41, 0xa5,
0x02, 0x0a, 0x63, 0x2a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x50, 0x65, 0x72, 0x73, 0x02, 0x0a, 0x70, 0x2a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x50, 0x65, 0x72, 0x73,
0x6f, 0x6e, 0x32, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x50, 0x65, 0x6f, 0x6e, 0x32, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x50, 0x65,
0x72, 0x73, 0x6f, 0x6e, 0xd2, 0x01, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0xd2, 0x01, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69,
0xd2, 0x01, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0xd2, 0x01, 0x06, 0x73, 0x74, 0x64, 0xd2, 0x01, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0xd2, 0x01, 0x08,
0x72, 0x65, 0x65, 0x74, 0xd2, 0x01, 0x04, 0x63, 0x69, 0x74, 0x79, 0xd2, 0x01, 0x03, 0x7a, 0x69, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0xd2, 0x01, 0x06, 0x73, 0x74, 0x72, 0x65, 0x65,
0x70, 0xd2, 0x01, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0xd2, 0x01, 0x08, 0x62, 0x69, 0x74, 0xd2, 0x01, 0x04, 0x63, 0x69, 0x74, 0x79, 0xd2, 0x01, 0x03, 0x7a, 0x69, 0x70, 0xd2, 0x01,
0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x32, 0xb0, 0x01, 0x7b, 0x20, 0x22, 0x61, 0x63, 0x63, 0x6f, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0xd2, 0x01, 0x08, 0x62, 0x69, 0x72, 0x74, 0x68,
0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x22, 0x31, 0x22, 0x2c, 0x20, 0x22, 0x66, 0x64, 0x61, 0x79, 0x32, 0xb0, 0x01, 0x7b, 0x20, 0x22, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x69, 0x72, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x4a, 0x6f, 0x68, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x22, 0x31, 0x22, 0x2c, 0x20, 0x22, 0x66, 0x69, 0x72, 0x73,
0x22, 0x2c, 0x20, 0x22, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x4a, 0x6f, 0x68, 0x6e, 0x22, 0x2c, 0x20,
0x44, 0x6f, 0x65, 0x22, 0x2c, 0x20, 0x22, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x6c, 0x61, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x6f, 0x65,
0x22, 0x4d, 0x61, 0x69, 0x6e, 0x20, 0x53, 0x74, 0x72, 0x65, 0x65, 0x74, 0x20, 0x31, 0x22, 0x2c, 0x22, 0x2c, 0x20, 0x22, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x4d, 0x61,
0x20, 0x22, 0x7a, 0x69, 0x70, 0x22, 0x3a, 0x20, 0x22, 0x30, 0x38, 0x31, 0x35, 0x22, 0x2c, 0x20, 0x69, 0x6e, 0x20, 0x53, 0x74, 0x72, 0x65, 0x65, 0x74, 0x20, 0x31, 0x22, 0x2c, 0x20, 0x22, 0x7a,
0x22, 0x63, 0x69, 0x74, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x65, 0x77, 0x20, 0x59, 0x6f, 0x72, 0x69, 0x70, 0x22, 0x3a, 0x20, 0x22, 0x30, 0x38, 0x31, 0x35, 0x22, 0x2c, 0x20, 0x22, 0x63, 0x69,
0x6b, 0x22, 0x2c, 0x20, 0x22, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x74, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x4e, 0x65, 0x77, 0x20, 0x59, 0x6f, 0x72, 0x6b, 0x22, 0x2c,
0x55, 0x53, 0x41, 0x22, 0x2c, 0x20, 0x22, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x22, 0x20, 0x22, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x55, 0x53, 0x41,
0x3a, 0x20, 0x22, 0x31, 0x39, 0x39, 0x30, 0x2d, 0x31, 0x30, 0x2d, 0x30, 0x35, 0x54, 0x30, 0x30, 0x22, 0x2c, 0x20, 0x22, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x22, 0x3a, 0x20, 0x22,
0x3a, 0x30, 0x30, 0x3a, 0x30, 0x30, 0x5a, 0x22, 0x7d, 0x22, 0x72, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x31, 0x39, 0x39, 0x30, 0x2d, 0x31, 0x30, 0x2d, 0x30, 0x35, 0x54, 0x30, 0x30, 0x3a, 0x30, 0x30,
0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x3a, 0x30, 0x30, 0x5a, 0x22, 0x7d, 0x22, 0x72, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x65, 0x12, 0x27, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27,
0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x42, 0x03, 0x92, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a,
0x41, 0x00, 0x52, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x3a, 0x31, 0x92, 0x41, 0x2e, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x42, 0x03, 0x92, 0x41, 0x00, 0x52,
0x2c, 0x2a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x06, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x3a, 0x31, 0x92, 0x41, 0x2e, 0x0a, 0x2c, 0x2a, 0x0e,
0x6e, 0x32, 0x1a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x32, 0x1a,
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x42, 0x19, 0x5a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x72, 0x65, 0x61,
0x17, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x73, 0x73, 0x74, 0x65, 0x64, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x42, 0x19, 0x5a, 0x17, 0x67, 0x69,
0x63, 0x62, 0x2f, 0x64, 0x66, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x73, 0x73, 0x63, 0x62, 0x2f,
0x64, 0x66, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (

View File

@ -26,7 +26,7 @@ type DeletePaymentRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (x *DeletePaymentRequest) Reset() { func (x *DeletePaymentRequest) Reset() {
@ -61,7 +61,7 @@ func (*DeletePaymentRequest) Descriptor() ([]byte, []int) {
return file_rpc_delete_payment_proto_rawDescGZIP(), []int{0} return file_rpc_delete_payment_proto_rawDescGZIP(), []int{0}
} }
func (x *DeletePaymentRequest) GetId() int64 { func (x *DeletePaymentRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -133,7 +133,7 @@ var file_rpc_delete_payment_proto_rawDesc = []byte{
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61,
0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x39, 0x92, 0x41, 0x36, 0x0a, 0x27, 0x2a, 0x0e, 0x44, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x39, 0x92, 0x41, 0x36, 0x0a, 0x27, 0x2a, 0x0e, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x10, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x61, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0xd2, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x61, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0xd2,
0x01, 0x02, 0x69, 0x64, 0x32, 0x0b, 0x7b, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x22, 0x31, 0x22, 0x01, 0x02, 0x69, 0x64, 0x32, 0x0b, 0x7b, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x22, 0x31, 0x22,

View File

@ -26,7 +26,7 @@ type DeletePersonRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (x *DeletePersonRequest) Reset() { func (x *DeletePersonRequest) Reset() {
@ -61,7 +61,7 @@ func (*DeletePersonRequest) Descriptor() ([]byte, []int) {
return file_rpc_delete_person_proto_rawDescGZIP(), []int{0} return file_rpc_delete_person_proto_rawDescGZIP(), []int{0}
} }
func (x *DeletePersonRequest) GetId() int64 { func (x *DeletePersonRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -132,7 +132,7 @@ var file_rpc_delete_person_proto_rawDesc = []byte{
0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a,
0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x02, 0x69, 0x64, 0x3a, 0x37, 0x92, 0x41, 0x34, 0x0a, 0x25, 0x2a, 0x0d, 0x44, 0x65, 0x6c, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x37, 0x92, 0x41, 0x34, 0x0a, 0x25, 0x2a, 0x0d, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x32, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x32, 0x0f, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x20, 0x61, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x74, 0x65, 0x20, 0x61, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0xd2, 0x01, 0x02, 0x69, 0x64,

View File

@ -26,7 +26,7 @@ type GetAccountRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (x *GetAccountRequest) Reset() { func (x *GetAccountRequest) Reset() {
@ -61,7 +61,7 @@ func (*GetAccountRequest) Descriptor() ([]byte, []int) {
return file_rpc_get_account_proto_rawDescGZIP(), []int{0} return file_rpc_get_account_proto_rawDescGZIP(), []int{0}
} }
func (x *GetAccountRequest) GetId() int64 { func (x *GetAccountRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -125,7 +125,7 @@ var file_rpc_get_account_proto_rawDesc = []byte{
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x61, 0x63, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, 0x0a, 0x11, 0x47, 0x65, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, 0x0a, 0x11, 0x47, 0x65,
0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x3a,
0x3a, 0x92, 0x41, 0x37, 0x0a, 0x27, 0x2a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x3a, 0x92, 0x41, 0x37, 0x0a, 0x27, 0x2a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x32, 0x14, 0x47, 0x65, 0x74, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x14, 0x47, 0x65, 0x74, 0x20, 0x61, 0x6e, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x20, 0x62, 0x79, 0x20, 0x49, 0x44, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x32, 0x0c, 0x7b, 0x6e, 0x74, 0x20, 0x62, 0x79, 0x20, 0x49, 0x44, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x32, 0x0c, 0x7b,

View File

@ -26,7 +26,7 @@ type GetPaymentRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (x *GetPaymentRequest) Reset() { func (x *GetPaymentRequest) Reset() {
@ -61,7 +61,7 @@ func (*GetPaymentRequest) Descriptor() ([]byte, []int) {
return file_rpc_get_payment_proto_rawDescGZIP(), []int{0} return file_rpc_get_payment_proto_rawDescGZIP(), []int{0}
} }
func (x *GetPaymentRequest) GetId() int64 { func (x *GetPaymentRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -125,7 +125,7 @@ var file_rpc_get_payment_proto_rawDesc = []byte{
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x79, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x79,
0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, 0x0a, 0x11, 0x47, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, 0x0a, 0x11, 0x47, 0x65,
0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x3a,
0x3a, 0x92, 0x41, 0x37, 0x0a, 0x27, 0x2a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x3a, 0x92, 0x41, 0x37, 0x0a, 0x27, 0x2a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65,
0x6e, 0x74, 0x32, 0x14, 0x47, 0x65, 0x74, 0x20, 0x61, 0x6e, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x14, 0x47, 0x65, 0x74, 0x20, 0x61, 0x6e, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x65,
0x6e, 0x74, 0x20, 0x62, 0x79, 0x20, 0x49, 0x44, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x32, 0x0c, 0x7b, 0x6e, 0x74, 0x20, 0x62, 0x79, 0x20, 0x49, 0x44, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x32, 0x0c, 0x7b,

View File

@ -26,7 +26,7 @@ type GetPersonRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
} }
func (x *GetPersonRequest) Reset() { func (x *GetPersonRequest) Reset() {
@ -61,7 +61,7 @@ func (*GetPersonRequest) Descriptor() ([]byte, []int) {
return file_rpc_get_person_proto_rawDescGZIP(), []int{0} return file_rpc_get_person_proto_rawDescGZIP(), []int{0}
} }
func (x *GetPersonRequest) GetId() int64 { func (x *GetPersonRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -125,7 +125,7 @@ var file_rpc_get_person_proto_rawDesc = []byte{
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x70, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x70, 0x65, 0x72, 0x73,
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50,
0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x38, 0x92, 0x41, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x38, 0x92, 0x41,
0x35, 0x0a, 0x25, 0x2a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x32, 0x13, 0x35, 0x0a, 0x25, 0x2a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x32, 0x13,
0x47, 0x65, 0x74, 0x20, 0x61, 0x6e, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x20, 0x62, 0x79, 0x47, 0x65, 0x74, 0x20, 0x61, 0x6e, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x20, 0x62, 0x79,
0x20, 0x49, 0x44, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x32, 0x0c, 0x7b, 0x22, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x49, 0x44, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x32, 0x0c, 0x7b, 0x22, 0x69, 0x64, 0x22, 0x3a,

View File

@ -26,8 +26,8 @@ type ListAccountsRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
PageId int32 `protobuf:"varint,1,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"` PageId uint32 `protobuf:"varint,1,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
} }
func (x *ListAccountsRequest) Reset() { func (x *ListAccountsRequest) Reset() {
@ -62,14 +62,14 @@ func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
return file_rpc_list_accounts_proto_rawDescGZIP(), []int{0} return file_rpc_list_accounts_proto_rawDescGZIP(), []int{0}
} }
func (x *ListAccountsRequest) GetPageId() int32 { func (x *ListAccountsRequest) GetPageId() uint32 {
if x != nil { if x != nil {
return x.PageId return x.PageId
} }
return 0 return 0
} }
func (x *ListAccountsRequest) GetPageSize() int32 { func (x *ListAccountsRequest) GetPageSize() uint32 {
if x != nil { if x != nil {
return x.PageSize return x.PageSize
} }
@ -131,27 +131,28 @@ var file_rpc_list_accounts_proto_rawDesc = []byte{
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70,
0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x61, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a,
0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a,
0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x3a, 0x56, 0x92, 0x41, 0x53, 0x0a, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x3a, 0x67, 0x92, 0x41, 0x64, 0x0a,
0x2f, 0x2a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x32, 0x40, 0x2a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x32,
0x1a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x1a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x20,
0x6f, 0x66, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0xd2, 0x01, 0x02, 0x69, 0x64, 0x6f, 0x66, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0xd2, 0x01, 0x07, 0x70, 0x61,
0x32, 0x20, 0x7b, 0x22, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x31, 0x2c, 0x67, 0x65, 0x5f, 0x69, 0x64, 0xd2, 0x01, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
0x20, 0x22, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x20, 0x31, 0x30, 0x65, 0x32, 0x20, 0x7b, 0x22, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x3a, 0x20, 0x31,
0x20, 0x7d, 0x22, 0x77, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x2c, 0x20, 0x22, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x20, 0x31,
0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x61, 0x63, 0x30, 0x20, 0x7d, 0x22, 0x77, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x61,
0x62, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x03, 0x92, 0x41, 0x00, 0x52, 0x08, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x31, 0x92, 0x41, 0x2e, 0x0a, 0x2c, 0x2a, 0x70, 0x62, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x03, 0x92, 0x41, 0x00, 0x52,
0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x20, 0x52, 0x65, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x31, 0x92, 0x41, 0x2e, 0x0a, 0x2c,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x13, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x2a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x20, 0x52,
0x74, 0x68, 0x65, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x19, 0x5a, 0x17, 0x67, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x13, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x73, 0x73, 0x63, 0x62, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x19, 0x5a, 0x17,
0x2f, 0x64, 0x66, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x73, 0x73, 0x63,
0x62, 0x2f, 0x64, 0x66, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (

View File

@ -26,7 +26,7 @@ type ListPaymentsRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
} }
func (x *ListPaymentsRequest) Reset() { func (x *ListPaymentsRequest) Reset() {
@ -61,7 +61,7 @@ func (*ListPaymentsRequest) Descriptor() ([]byte, []int) {
return file_rpc_list_payments_proto_rawDescGZIP(), []int{0} return file_rpc_list_payments_proto_rawDescGZIP(), []int{0}
} }
func (x *ListPaymentsRequest) GetAccountId() int64 { func (x *ListPaymentsRequest) GetAccountId() uint64 {
if x != nil { if x != nil {
return x.AccountId return x.AccountId
} }
@ -126,7 +126,7 @@ var file_rpc_list_payments_proto_rawDesc = []byte{
0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a,
0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x49, 0x64, 0x3a, 0x50, 0x92, 0x41, 0x4d, 0x0a, 0x37, 0x2a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x74, 0x49, 0x64, 0x3a, 0x50, 0x92, 0x41, 0x4d, 0x0a, 0x37, 0x2a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x32, 0x1a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x32, 0x1a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e,
0x73, 0x20, 0x61, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x50, 0x61, 0x79, 0x6d, 0x73, 0x20, 0x61, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x50, 0x61, 0x79, 0x6d,

View File

@ -26,7 +26,7 @@ type ListPersonsRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
} }
func (x *ListPersonsRequest) Reset() { func (x *ListPersonsRequest) Reset() {
@ -61,7 +61,7 @@ func (*ListPersonsRequest) Descriptor() ([]byte, []int) {
return file_rpc_list_persons_proto_rawDescGZIP(), []int{0} return file_rpc_list_persons_proto_rawDescGZIP(), []int{0}
} }
func (x *ListPersonsRequest) GetAccountId() int64 { func (x *ListPersonsRequest) GetAccountId() uint64 {
if x != nil { if x != nil {
return x.AccountId return x.AccountId
} }
@ -126,7 +126,7 @@ var file_rpc_list_persons_proto_rawDesc = []byte{
0x72, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, 0x0a, 0x12, 0x4c, 0x72, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, 0x0a, 0x12, 0x4c,
0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
0x3a, 0x4e, 0x92, 0x41, 0x4b, 0x0a, 0x35, 0x2a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x3a, 0x4e, 0x92, 0x41, 0x4b, 0x0a, 0x35, 0x2a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72,
0x73, 0x6f, 0x6e, 0x73, 0x32, 0x19, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x73, 0x6f, 0x6e, 0x73, 0x32, 0x19, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20,
0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x73, 0xd2, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x73, 0xd2,

View File

@ -26,7 +26,7 @@ type ListSessionsRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
} }
func (x *ListSessionsRequest) Reset() { func (x *ListSessionsRequest) Reset() {
@ -61,7 +61,7 @@ func (*ListSessionsRequest) Descriptor() ([]byte, []int) {
return file_rpc_list_sessions_proto_rawDescGZIP(), []int{0} return file_rpc_list_sessions_proto_rawDescGZIP(), []int{0}
} }
func (x *ListSessionsRequest) GetAccountId() int64 { func (x *ListSessionsRequest) GetAccountId() uint64 {
if x != nil { if x != nil {
return x.AccountId return x.AccountId
} }
@ -126,7 +126,7 @@ var file_rpc_list_sessions_proto_rawDesc = []byte{
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x01, 0x0a, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x01, 0x0a,
0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x0e, 0x92, 0x41, 0x0b, 0x4a, 0x01, 0x31, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x0e, 0x92, 0x41, 0x0b, 0x4a, 0x01, 0x31,
0xa2, 0x02, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0xa2, 0x02, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x49, 0x64, 0x3a, 0x52, 0x92, 0x41, 0x4f, 0x0a, 0x37, 0x2a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x74, 0x49, 0x64, 0x3a, 0x52, 0x92, 0x41, 0x4f, 0x0a, 0x37, 0x2a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x1a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x1a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e,

View File

@ -27,7 +27,7 @@ type UpdateAccountRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"` Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
Password *string `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"` Password *string `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"`
Firstname *string `protobuf:"bytes,4,opt,name=firstname,proto3,oneof" json:"firstname,omitempty"` Firstname *string `protobuf:"bytes,4,opt,name=firstname,proto3,oneof" json:"firstname,omitempty"`
@ -72,7 +72,7 @@ func (*UpdateAccountRequest) Descriptor() ([]byte, []int) {
return file_rpc_update_account_proto_rawDescGZIP(), []int{0} return file_rpc_update_account_proto_rawDescGZIP(), []int{0}
} }
func (x *UpdateAccountRequest) GetId() int64 { func (x *UpdateAccountRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -209,7 +209,7 @@ var file_rpc_update_account_proto_rawDesc = []byte{
0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xce, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xce,
0x04, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x04, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x88, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x88,
0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,

View File

@ -26,7 +26,7 @@ type UpdateAccountPrivacyRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
PrivacyAccepted *bool `protobuf:"varint,2,opt,name=privacy_accepted,json=privacyAccepted,proto3,oneof" json:"privacy_accepted,omitempty"` PrivacyAccepted *bool `protobuf:"varint,2,opt,name=privacy_accepted,json=privacyAccepted,proto3,oneof" json:"privacy_accepted,omitempty"`
} }
@ -62,7 +62,7 @@ func (*UpdateAccountPrivacyRequest) Descriptor() ([]byte, []int) {
return file_rpc_update_account_privacy_proto_rawDescGZIP(), []int{0} return file_rpc_update_account_privacy_proto_rawDescGZIP(), []int{0}
} }
func (x *UpdateAccountPrivacyRequest) GetId() int64 { func (x *UpdateAccountPrivacyRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -135,7 +135,7 @@ var file_rpc_update_account_privacy_proto_rawDesc = []byte{
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79, 0x52, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x42, 0x0e, 0x92, 0x41, 0x0b, 0x4a, 0x01, 0x31, 0xa2, 0x02, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x04, 0x42, 0x0e, 0x92, 0x41, 0x0b, 0x4a, 0x01, 0x31, 0xa2, 0x02, 0x05, 0x69, 0x6e, 0x74, 0x36,
0x34, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79, 0x34, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79,
0x5f, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42,
0x0a, 0x92, 0x41, 0x07, 0x4a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x0a, 0x92, 0x41, 0x07, 0x4a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x70,

View File

@ -26,7 +26,7 @@ type UpdatePaymentRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
PaymentCategory *string `protobuf:"bytes,2,opt,name=payment_category,json=paymentCategory,proto3,oneof" json:"payment_category,omitempty"` PaymentCategory *string `protobuf:"bytes,2,opt,name=payment_category,json=paymentCategory,proto3,oneof" json:"payment_category,omitempty"`
Bankname *string `protobuf:"bytes,3,opt,name=bankname,proto3,oneof" json:"bankname,omitempty"` Bankname *string `protobuf:"bytes,3,opt,name=bankname,proto3,oneof" json:"bankname,omitempty"`
IBAN *string `protobuf:"bytes,4,opt,name=IBAN,proto3,oneof" json:"IBAN,omitempty"` IBAN *string `protobuf:"bytes,4,opt,name=IBAN,proto3,oneof" json:"IBAN,omitempty"`
@ -69,7 +69,7 @@ func (*UpdatePaymentRequest) Descriptor() ([]byte, []int) {
return file_rpc_update_payment_proto_rawDescGZIP(), []int{0} return file_rpc_update_payment_proto_rawDescGZIP(), []int{0}
} }
func (x *UpdatePaymentRequest) GetId() int64 { func (x *UpdatePaymentRequest) GetId() uint64 {
if x != nil { if x != nil {
return x.Id return x.Id
} }
@ -190,7 +190,7 @@ var file_rpc_update_payment_proto_rawDesc = []byte{
0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x05, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x05,
0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x48, 0x00, 0x52, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x62, 0x61, 0x6e, 0x6b, 0x6e, 0x61, 0x6f, 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x62, 0x61, 0x6e, 0x6b, 0x6e, 0x61,

View File

@ -115,7 +115,7 @@ func request_Df_ListSessions_0(ctx context.Context, marshaler runtime.Marshaler,
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id")
} }
protoReq.AccountId, err = runtime.Int64(val) protoReq.AccountId, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err)
} }
@ -141,7 +141,7 @@ func local_request_Df_ListSessions_0(ctx context.Context, marshaler runtime.Mars
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id")
} }
protoReq.AccountId, err = runtime.Int64(val) protoReq.AccountId, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err)
} }
@ -201,7 +201,7 @@ func request_Df_GetAccount_0(ctx context.Context, marshaler runtime.Marshaler, c
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -227,7 +227,7 @@ func local_request_Df_GetAccount_0(ctx context.Context, marshaler runtime.Marsha
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -425,7 +425,7 @@ func request_Df_GetPerson_0(ctx context.Context, marshaler runtime.Marshaler, cl
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -451,7 +451,7 @@ func local_request_Df_GetPerson_0(ctx context.Context, marshaler runtime.Marshal
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -477,7 +477,7 @@ func request_Df_DeletePerson_0(ctx context.Context, marshaler runtime.Marshaler,
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -503,7 +503,7 @@ func local_request_Df_DeletePerson_0(ctx context.Context, marshaler runtime.Mars
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -529,7 +529,7 @@ func request_Df_ListPersons_0(ctx context.Context, marshaler runtime.Marshaler,
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id")
} }
protoReq.AccountId, err = runtime.Int64(val) protoReq.AccountId, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err)
} }
@ -555,7 +555,7 @@ func local_request_Df_ListPersons_0(ctx context.Context, marshaler runtime.Marsh
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id")
} }
protoReq.AccountId, err = runtime.Int64(val) protoReq.AccountId, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err)
} }
@ -615,7 +615,7 @@ func request_Df_GetPayment_0(ctx context.Context, marshaler runtime.Marshaler, c
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -641,7 +641,7 @@ func local_request_Df_GetPayment_0(ctx context.Context, marshaler runtime.Marsha
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -667,7 +667,7 @@ func request_Df_DeletePayment_0(ctx context.Context, marshaler runtime.Marshaler
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -693,7 +693,7 @@ func local_request_Df_DeletePayment_0(ctx context.Context, marshaler runtime.Mar
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
} }
protoReq.Id, err = runtime.Int64(val) protoReq.Id, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
} }
@ -719,7 +719,7 @@ func request_Df_ListPayments_0(ctx context.Context, marshaler runtime.Marshaler,
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id")
} }
protoReq.AccountId, err = runtime.Int64(val) protoReq.AccountId, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err)
} }
@ -745,7 +745,7 @@ func local_request_Df_ListPayments_0(ctx context.Context, marshaler runtime.Mars
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id") return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account_id")
} }
protoReq.AccountId, err = runtime.Int64(val) protoReq.AccountId, err = runtime.Uint64(val)
if err != nil { if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err) return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account_id", err)
} }

View File

@ -14,7 +14,7 @@ message Account {
}; };
example: "{\"id\": \"1\",\"email\": \"john.doe@example.com\", \"firstname\": \"John\", \"lastname\": \"Doe\", \"phone\": \"\", \"street\": \"Death Star 2\", \"zip\": \"0815\", \"city\": \"New York\", \"country\": \"USA\", \"birthday\": \"1990-10-05T00:00:00Z\", \"privacy_accepted\": false, \"privacy_accepted_date\": \"0001-01-01T00:00:00Z\", \"creator\": \"john.doe@example.com\", \"created\": \"2023-10-05T02:30:53Z\", \"changer\": \"john.doe@example.com\", \"changed\": \"2023-10-05T02:30:53Z\"}"; example: "{\"id\": \"1\",\"email\": \"john.doe@example.com\", \"firstname\": \"John\", \"lastname\": \"Doe\", \"phone\": \"\", \"street\": \"Death Star 2\", \"zip\": \"0815\", \"city\": \"New York\", \"country\": \"USA\", \"birthday\": \"1990-10-05T00:00:00Z\", \"privacy_accepted\": false, \"privacy_accepted_date\": \"0001-01-01T00:00:00Z\", \"creator\": \"john.doe@example.com\", \"created\": \"2023-10-05T02:30:53Z\", \"changer\": \"john.doe@example.com\", \"changed\": \"2023-10-05T02:30:53Z\"}";
}; };
int64 id = 1; uint64 id = 1;
string email = 2; string email = 2;
string firstname = 3; string firstname = 3;
string lastname = 4; string lastname = 4;

View File

@ -14,8 +14,8 @@ message Payment {
}; };
example: "{\"id\": \"1\",\"account_id\": \"1\", \"payment_category\": \"TBD: paypal\", \"paypal_account\": \"john.doe@example.com\", \"paypal_id\": \"this-is-a-paypal-id\", \"payment_system\": \"TBD: paypal system\", \"type\": \"TBD: some type\", \"creator\": \"john.doe@example.com\", \"created\": \"2023-10-05T02:30:53Z\", \"changer\": \"john.doe@example.com\", \"changed\": \"2023-10-05T02:30:53Z\"}"; example: "{\"id\": \"1\",\"account_id\": \"1\", \"payment_category\": \"TBD: paypal\", \"paypal_account\": \"john.doe@example.com\", \"paypal_id\": \"this-is-a-paypal-id\", \"payment_system\": \"TBD: paypal system\", \"type\": \"TBD: some type\", \"creator\": \"john.doe@example.com\", \"created\": \"2023-10-05T02:30:53Z\", \"changer\": \"john.doe@example.com\", \"changed\": \"2023-10-05T02:30:53Z\"}";
}; };
int64 id = 1; uint64 id = 1;
int64 account_id = 2; uint64 account_id = 2;
string payment_category = 3; string payment_category = 3;
optional string bankname = 4; optional string bankname = 4;
optional string IBAN = 5; optional string IBAN = 5;

View File

@ -14,8 +14,8 @@ message Person {
}; };
example: "{\"id\": \"1\",\"email\": \"john.doe@example.com\", \"firstname\": \"John\", \"lastname\": \"Doe\", \"phone\": \"\", \"street\": \"Death Star 2\", \"zip\": \"0815\", \"city\": \"New York\", \"country\": \"USA\", \"birthday\": \"1990-10-05T00:00:00Z\", \"privacy_accepted\": false, \"privacy_accepted_date\": \"0001-01-01T00:00:00Z\", \"creator\": \"john.doe@example.com\", \"created\": \"2023-10-05T02:30:53Z\", \"changer\": \"john.doe@example.com\", \"changed\": \"2023-10-05T02:30:53Z\"}"; example: "{\"id\": \"1\",\"email\": \"john.doe@example.com\", \"firstname\": \"John\", \"lastname\": \"Doe\", \"phone\": \"\", \"street\": \"Death Star 2\", \"zip\": \"0815\", \"city\": \"New York\", \"country\": \"USA\", \"birthday\": \"1990-10-05T00:00:00Z\", \"privacy_accepted\": false, \"privacy_accepted_date\": \"0001-01-01T00:00:00Z\", \"creator\": \"john.doe@example.com\", \"created\": \"2023-10-05T02:30:53Z\", \"changer\": \"john.doe@example.com\", \"changed\": \"2023-10-05T02:30:53Z\"}";
}; };
int64 id = 1; uint64 id = 1;
int64 account_id = 2; uint64 account_id = 2;
string firstname = 3; string firstname = 3;
string lastname = 4; string lastname = 4;
string street = 5; string street = 5;

View File

@ -16,13 +16,12 @@ message CreatePaymentRequest {
required: [ required: [
"account_id", "account_id",
"payment_category", "payment_category",
"payment_system",
"type" "type"
]; ];
}; };
example: "{\"account_id\": \"1\", \"payment_category\": \"TBD: paypal\", \"paypal_account\": \"john.doe@example.com\", \"paypal_id\": \"this-is-a-paypal-id\", \"payment_system\": \"TBD: paypal system\", \"type\": \"TBD: some type\"}"; example: "{\"account_id\": \"1\", \"payment_category\": \"TBD: paypal\", \"paypal_account\": \"john.doe@example.com\", \"paypal_id\": \"this-is-a-paypal-id\", \"payment_system\": \"TBD: paypal system\", \"type\": \"TBD: some type\"}";
}; };
int64 account_id = 1; uint64 account_id = 1;
string payment_category = 2; string payment_category = 2;
optional string bankname = 3; optional string bankname = 3;
optional string IBAN = 4; optional string IBAN = 4;

View File

@ -15,6 +15,7 @@ message CreatePersonRequest {
title: "Create Person"; title: "Create Person";
description: "Create an Person"; description: "Create an Person";
required: [ required: [
"account_id",
"firstname", "firstname",
"lastname", "lastname",
"street", "street",
@ -26,7 +27,7 @@ message CreatePersonRequest {
}; };
example: "{ \"account_id\": \"1\", \"firstname\": \"John\", \"lastname\": \"Doe\", \"street\": \"Main Street 1\", \"zip\": \"0815\", \"city\": \"New York\", \"country\": \"USA\", \"birthday\": \"1990-10-05T00:00:00Z\"}"; example: "{ \"account_id\": \"1\", \"firstname\": \"John\", \"lastname\": \"Doe\", \"street\": \"Main Street 1\", \"zip\": \"0815\", \"city\": \"New York\", \"country\": \"USA\", \"birthday\": \"1990-10-05T00:00:00Z\"}";
}; };
int64 account_id = 1; uint64 account_id = 1;
string firstname = 2; string firstname = 2;
string lastname = 3; string lastname = 3;
string street = 4; string street = 4;

View File

@ -17,7 +17,7 @@ message DeletePaymentRequest {
}; };
example: "{\"id\": \"1\"}" example: "{\"id\": \"1\"}"
}; };
int64 id = 1; uint64 id = 1;
} }
message DeletePaymentResponse { message DeletePaymentResponse {

View File

@ -17,7 +17,7 @@ message DeletePersonRequest {
}; };
example: "{\"id\": \"1\"}" example: "{\"id\": \"1\"}"
}; };
int64 id = 1; uint64 id = 1;
} }
message DeletePersonResponse { message DeletePersonResponse {

View File

@ -19,7 +19,7 @@ message GetAccountRequest {
}; };
example: "{\"id\": \"1\" }"; example: "{\"id\": \"1\" }";
}; };
int64 id = 1; uint64 id = 1;
} }
message GetAccountResponse { message GetAccountResponse {

View File

@ -19,7 +19,7 @@ message GetPaymentRequest {
}; };
example: "{\"id\": \"1\" }"; example: "{\"id\": \"1\" }";
}; };
int64 id = 1; uint64 id = 1;
} }
message GetPaymentResponse { message GetPaymentResponse {

View File

@ -19,7 +19,7 @@ message GetPersonRequest {
}; };
example: "{\"id\": \"1\" }"; example: "{\"id\": \"1\" }";
}; };
int64 id = 1; uint64 id = 1;
} }
message GetPersonResponse { message GetPersonResponse {

View File

@ -14,13 +14,14 @@ message ListAccountsRequest {
title: "ListAccounts"; title: "ListAccounts";
description: "Returns a List of Accounts"; description: "Returns a List of Accounts";
required: [ required: [
"id" "page_id",
"page_size"
]; ];
}; };
example: "{\"page_id\": 1, \"page_size\": 10 }"; example: "{\"page_id\": 1, \"page_size\": 10 }";
}; };
int32 page_id = 1; uint32 page_id = 1;
int32 page_size = 2; uint32 page_size = 2;
} }
message ListAccountsResponse { message ListAccountsResponse {

View File

@ -19,7 +19,7 @@ message ListPaymentsRequest {
}; };
example: "{\"account_id\": 1 }"; example: "{\"account_id\": 1 }";
}; };
int64 account_id = 1; uint64 account_id = 1;
} }
message ListPaymentsResponse { message ListPaymentsResponse {

View File

@ -19,7 +19,7 @@ message ListPersonsRequest {
}; };
example: "{\"account_id\": 1 }"; example: "{\"account_id\": 1 }";
}; };
int64 account_id = 1; uint64 account_id = 1;
} }
message ListPersonsResponse { message ListPersonsResponse {

View File

@ -19,7 +19,7 @@ message ListSessionsRequest {
}; };
example: "{\"account_id\": \"1\" }"; example: "{\"account_id\": \"1\" }";
}; };
int64 account_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { uint64 account_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "1", example: "1",
format: "int64" format: "int64"
}]; }];

View File

@ -20,7 +20,7 @@ message UpdateAccountRequest {
}; };
example: "{\"id\": \"1\", \"street\": \"Death Star 2\"}"; example: "{\"id\": \"1\", \"street\": \"Death Star 2\"}";
}; };
int64 id = 1; uint64 id = 1;
optional string email = 2; optional string email = 2;
optional string password = 3; optional string password = 3;
optional string firstname = 4; optional string firstname = 4;

View File

@ -20,7 +20,7 @@ message UpdateAccountPrivacyRequest {
}; };
example: "{\"id\": \"1\", \"privacy_accepted\": true }" example: "{\"id\": \"1\", \"privacy_accepted\": true }"
}; };
int64 id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { uint64 id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "1", example: "1",
format: "int64" format: "int64"
}]; }];

View File

@ -19,7 +19,7 @@ message UpdatePaymentRequest {
}; };
example: "{\"id\": \"1\", \"payment_category\": \"TBD: paypal\", \"paypal_account\": \"john.doe@example.com\", \"paypal_id\": \"this-is-a-paypal-id\", \"payment_system\": \"TBD: paypal system\", \"type\": \"TBD: some type\"}"; example: "{\"id\": \"1\", \"payment_category\": \"TBD: paypal\", \"paypal_account\": \"john.doe@example.com\", \"paypal_id\": \"this-is-a-paypal-id\", \"payment_system\": \"TBD: paypal system\", \"type\": \"TBD: some type\"}";
}; };
int64 id = 1; uint64 id = 1;
optional string payment_category = 2; optional string payment_category = 2;
optional string bankname = 3; optional string bankname = 3;
optional string IBAN = 4; optional string IBAN = 4;

View File

@ -13,6 +13,11 @@ sql:
emit_empty_slices: true emit_empty_slices: true
emit_exact_table_names: false emit_exact_table_names: false
overrides: overrides:
- db_type: "bigserial"
go_type: "uint64"
- db_type: "bigint"
null: false
go_type: "uint64"
- db_type: "timestamptz" - db_type: "timestamptz"
go_type: "time.Time" go_type: "time.Time"
- db_type: "uuid" - db_type: "uuid"

View File

@ -9,8 +9,8 @@ const alphabet = "abcdefghijklmnopqrstuvwxyz"
const numbers = "0123456789" const numbers = "0123456789"
// RandomInt generates a random number between min and max // RandomInt generates a random number between min and max
func RandomInt(min, max int64) int64 { func RandomInt(min, max int64) uint64 {
return min + rand.Int63n(max-min+1) return uint64(min + rand.Int63n(max-min+1))
} }
// RandomString generates a random string of length n // RandomString generates a random string of length n