From 0e939ceac8404b13b7a2e6a177a0ff9de1bdc6af Mon Sep 17 00:00:00 2001 From: little-cui Date: Sat, 22 Oct 2022 11:35:31 +0800 Subject: [PATCH] Feature: add batch create accounts models --- rbac/account.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/rbac/account.go b/rbac/account.go index 5eed337..20b410c 100644 --- a/rbac/account.go +++ b/rbac/account.go @@ -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"`