Skip to content

Commit

Permalink
Feature: add batch create accounts models (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
little-cui authored Oct 22, 2022
1 parent 2c62cc5 commit e9c9333
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions rbac/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@

package rbac

import "github.com/go-chassis/cari/pkg/errsvc"

// BatchCreateAccountsRequest the request definition of batch create accounts
type BatchCreateAccountsRequest struct {
Accounts []*Account `json:"accounts"`
}

// BatchCreateAccountsResponse the response definition of batch create accounts
type BatchCreateAccountsResponse struct {
Accounts []*BatchCreateAccountItemResponse `json:"accounts"`
}

// BatchCreateAccountItemResponse the item result of batch create accounts
type BatchCreateAccountItemResponse struct {
Name string `json:"name"`

*errsvc.Error
}

type AccountResponse struct {
Total int64 `json:"total,omitempty"`
Accounts []*Account `json:"data,omitempty"`
Expand Down

0 comments on commit e9c9333

Please sign in to comment.