mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
21 lines
417 B
Go
21 lines
417 B
Go
package model
|
|
|
|
import "github.com/effective-security/trustyca/api/pb"
|
|
|
|
// RecordsResult reports how many rows a bulk operation
|
|
// created, updated or deleted.
|
|
type RecordsResult struct {
|
|
Created int64
|
|
Updated int64
|
|
Deleted int64
|
|
}
|
|
|
|
// Pb converts the result to proto
|
|
func (r *RecordsResult) Pb() *pb.RecordsResult {
|
|
return &pb.RecordsResult{
|
|
Created: r.Created,
|
|
Updated: r.Updated,
|
|
Deleted: r.Deleted,
|
|
}
|
|
}
|