model

package
v0.0.0-...-e5954dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	CreatedAt time.Time  `json:"createdAt"` // 作成日時
	CreatedBy string     `json:"createdBy"` // 作成者
	UpdatedAt time.Time  `json:"updatedAt"` // 更新日時
	UpdatedBy string     `json:"updatedBy"` // 更新者
	DeletedAt *time.Time `json:"deletedAt"` // 削除日時
	DeletedBy string     `json:"deletedBy"` // 削除者
	Version   int        `json:"version"`   // 楽観的排他ロック用バージョン
}

Meta - メタ情報

func (*Meta) IsDeleted

func (m *Meta) IsDeleted() bool

IsDeleted - 削除済みかどうかを返す

func (*Meta) Update

func (m *Meta) Update(ctx context.Context) error

Update - メタ情報を更新する

type Organization

type Organization struct {
	ID                   string `firestore:"-" firestore_key:"auto"` // ID
	Name                 string ``                                   // 名称
	LINEWorksAppID       string ``                                   // LINE Works App ID
	LINEWorksConsumerKey string ``                                   // LINE Works Service API Consumer Key
	LINEWorksDomain      string ``                                   // LINE Works Domain
	Meta
}

Organization - 組織

type OrganizationUser

type OrganizationUser struct {
	ID                        string `firestore:"-" firestore_key:"auto"` // ID
	OrganizationID            string ``                                   // 組織ID
	PrimaryEmail              string ``                                   // メールアドレス
	LINEWorksAccessToken      string ``                                   // LINE Works Access Token
	GoogleCalendarEmail       string ``                                   // Google Calendar メールアドレス
	GoogleCalendarAccessToken string ``                                   // Google Calendar Access Token
	Meta
}

OrganizationUser - 組織ユーザー

type Session

type Session struct {
	ID     string `firestore:"-" firestore_key:"auto"`
	UserID string
	Meta
}

type User

type User struct {
	ID                         string    `firestore:"-" firestore_key:"auto"`            // ID
	Name                       string    ``                                              // ニックネーム
	PrimaryEmail               string    `                                    unique:""` // メールアドレス
	Domain                     string    ``                                              // ドメイン
	IsAdmin                    bool      ``                                              // 管理者
	LINEWorksState             string    ``                                              // LINE Works State
	LINEWorksAccessToken       string    ``                                              // LINE Works Access Token
	LINEWorksRefreshToken      string    ``                                              // LINE Works Refresh Token
	GoogleCalendarEmail        string    ``                                              // Google Calendar メールアドレス
	GoogleCalendarAccessToken  string    ``                                              // Google Calendar Access Token
	GoogleCalendarRefreshToken string    ``                                              // Google Calendar Refresh Token
	GoogleCalendarTokenType    string    ``                                              // Google Calendar TokenType
	GoogleCalendarExpiry       time.Time ``                                              // Google Calendarr Expiry
	Meta
}

User - ユーザー

func (*User) GetGoogleCalendarToken

func (u *User) GetGoogleCalendarToken() *oauth2.Token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL