snow/person/changes.go

38 lines
861 B
Go
Raw Permalink Normal View History

package person
import "github.com/ectrc/snow/aid"
type FullProfileUpdate struct {
ChangeType string `json:"changeType"`
2024-02-14 23:07:05 +00:00
Profile interface{} `json:"profile"`
}
type StatModified struct {
ChangeType string `json:"changeType"`
Name string `json:"name"`
Value interface{} `json:"value"`
}
type ItemAdded struct {
ChangeType string `json:"changeType"`
ItemId string `json:"itemId"`
Item aid.JSON `json:"item"`
}
type ItemRemoved struct {
ChangeType string `json:"changeType"`
ItemId string `json:"itemId"`
}
type ItemAttributeChanged struct {
ChangeType string `json:"changeType"`
ItemId string `json:"itemId"`
AttributeName string `json:"attributeName"`
AttributeValue interface{} `json:"attributeValue"`
}
type ItemQuantityChanged struct {
ChangeType string `json:"changeType"`
ItemId string `json:"itemId"`
Quantity int `json:"quantity"`
}