# Eventbus Data Structure

This Repo storages the data structure in eventbus.

# How to storage?

All events have been store at the `event` path. It classified by the micro-system of publishing.

Like following:

```
/
|-- event
|   |-- account.go // account events store here
|   |-- billing.go // billing events store here
```

## Event Information Detail Example

```go
// billing.go

// ...

// At first, you should indicate the event type you are about to publish
// The Name starts with you event type as Camel-Case and ends with `EventType`
// Suggest: comment when or how this event have been published and who are responsible for it.
// Example:
// The user create pay-method at billing and is payable @Nizheming
const TenantPayableEventType = "tenant-payable"

// Then, you should indicate the data structure of you event payload
// Same as before, the Name starts with you event type as Camel-Case but ends with `DataStructure`
type TenantPayableDataStructure struct {
    // Suggest: comment what is this filed meaning or more information about the consumer how to use it.
    TenantID uint `json:"tenant_id"` 
}
```
