Skip to content

Commit e9c9333

Browse files
authored
Feature: add batch create accounts models (#62)
1 parent 2c62cc5 commit e9c9333

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

rbac/account.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@
1717

1818
package rbac
1919

20+
import "github.com/go-chassis/cari/pkg/errsvc"
21+
22+
// BatchCreateAccountsRequest the request definition of batch create accounts
23+
type BatchCreateAccountsRequest struct {
24+
Accounts []*Account `json:"accounts"`
25+
}
26+
27+
// BatchCreateAccountsResponse the response definition of batch create accounts
28+
type BatchCreateAccountsResponse struct {
29+
Accounts []*BatchCreateAccountItemResponse `json:"accounts"`
30+
}
31+
32+
// BatchCreateAccountItemResponse the item result of batch create accounts
33+
type BatchCreateAccountItemResponse struct {
34+
Name string `json:"name"`
35+
36+
*errsvc.Error
37+
}
38+
2039
type AccountResponse struct {
2140
Total int64 `json:"total,omitempty"`
2241
Accounts []*Account `json:"data,omitempty"`

0 commit comments

Comments
 (0)