mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
merge(github): merge github/main, keep our code and docs/spec
This commit is contained in:
@@ -7,15 +7,15 @@ import (
|
||||
|
||||
// Bot represents a bot entity.
|
||||
type Bot struct {
|
||||
ID string `json:"id"`
|
||||
OwnerUserID string `json:"owner_user_id"`
|
||||
Type string `json:"type"`
|
||||
DisplayName string `json:"display_name"`
|
||||
ID string `json:"id" validate:"required"`
|
||||
OwnerUserID string `json:"owner_user_id" validate:"required"`
|
||||
Type string `json:"type" validate:"required"`
|
||||
DisplayName string `json:"display_name" validate:"required"`
|
||||
AvatarURL string `json:"avatar_url,omitempty"`
|
||||
IsActive bool `json:"is_active"`
|
||||
IsActive bool `json:"is_active" validate:"required"`
|
||||
Metadata map[string]any `json:"metadata,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
CreatedAt time.Time `json:"created_at" validate:"required"`
|
||||
UpdatedAt time.Time `json:"updated_at" validate:"required"`
|
||||
}
|
||||
|
||||
// BotMember represents a bot membership record.
|
||||
@@ -56,7 +56,7 @@ type UpsertMemberRequest struct {
|
||||
|
||||
// ListBotsResponse wraps a list of bots.
|
||||
type ListBotsResponse struct {
|
||||
Items []Bot `json:"items"`
|
||||
Items []Bot `json:"items" validate:"required"`
|
||||
}
|
||||
|
||||
// ListMembersResponse wraps a list of bot members.
|
||||
|
||||
Reference in New Issue
Block a user