Documentation ¶
Index ¶
- type ActionItem
- type AddGeneratedImagesParams
- type CountOpinionsParams
- type CountTalkSessionsParams
- type CountTalkSessionsRow
- type CreateActionItemParams
- type CreateOpinionParams
- type CreateSessionParams
- type CreateTalkSessionConclusionParams
- type CreateTalkSessionLocationParams
- type CreateTalkSessionParams
- type CreateUserAuthParams
- type CreateUserParams
- type CreateVoteParams
- type DBTX
- type EditTalkSessionParams
- type FindVoteByUserIDAndOpinionIDParams
- type GetActionItemByIDRow
- type GetActionItemsByTalkSessionIDRow
- type GetGroupInfoByTalkSessionIdRow
- type GetOpinionByIDParams
- type GetOpinionByIDRow
- type GetOpinionRepliesParams
- type GetOpinionRepliesRow
- type GetOpinionsByTalkSessionIDParams
- type GetOpinionsByTalkSessionIDRow
- type GetOpinionsByUserIDParams
- type GetOpinionsByUserIDRow
- type GetOwnTalkSessionByUserIDParams
- type GetOwnTalkSessionByUserIDRow
- type GetParentOpinionsParams
- type GetParentOpinionsRow
- type GetRandomOpinionsParams
- type GetRandomOpinionsRow
- type GetRepresentativeOpinionsByTalkSessionIdRow
- type GetRespondTalkSessionByUserIDParams
- type GetRespondTalkSessionByUserIDRow
- type GetTalkSessionByIDRow
- type GetTalkSessionConclusionByIDRow
- type GetUserBySubjectRow
- type ListTalkSessionsParams
- type ListTalkSessionsRow
- type Opinion
- type Queries
- func (q *Queries) AddGeneratedImages(ctx context.Context, arg AddGeneratedImagesParams) error
- func (q *Queries) CountOpinions(ctx context.Context, arg CountOpinionsParams) (int64, error)
- func (q *Queries) CountTalkSessions(ctx context.Context, arg CountTalkSessionsParams) (CountTalkSessionsRow, error)
- func (q *Queries) CreateActionItem(ctx context.Context, arg CreateActionItemParams) error
- func (q *Queries) CreateOpinion(ctx context.Context, arg CreateOpinionParams) error
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
- func (q *Queries) CreateTalkSession(ctx context.Context, arg CreateTalkSessionParams) error
- func (q *Queries) CreateTalkSessionConclusion(ctx context.Context, arg CreateTalkSessionConclusionParams) error
- func (q *Queries) CreateTalkSessionLocation(ctx context.Context, arg CreateTalkSessionLocationParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) CreateUserAuth(ctx context.Context, arg CreateUserAuthParams) error
- func (q *Queries) CreateVote(ctx context.Context, arg CreateVoteParams) error
- func (q *Queries) EditTalkSession(ctx context.Context, arg EditTalkSessionParams) error
- func (q *Queries) FindActiveSessionsByUserID(ctx context.Context, userID uuid.UUID) ([]Session, error)
- func (q *Queries) FindSessionBySessionID(ctx context.Context, sessionID uuid.UUID) (Session, error)
- func (q *Queries) FindVoteByUserIDAndOpinionID(ctx context.Context, arg FindVoteByUserIDAndOpinionIDParams) (Vote, error)
- func (q *Queries) GetActionItemByID(ctx context.Context, actionItemID uuid.UUID) (GetActionItemByIDRow, error)
- func (q *Queries) GetActionItemsByTalkSessionID(ctx context.Context, talkSessionID uuid.UUID) ([]GetActionItemsByTalkSessionIDRow, error)
- func (q *Queries) GetGeneratedImages(ctx context.Context, dollar_1 uuid.UUID) (TalkSessionGeneratedImage, error)
- func (q *Queries) GetGroupInfoByTalkSessionId(ctx context.Context, talkSessionID uuid.UUID) ([]GetGroupInfoByTalkSessionIdRow, error)
- func (q *Queries) GetGroupListByTalkSessionId(ctx context.Context, talkSessionID uuid.UUID) ([]int32, error)
- func (q *Queries) GetOpinionByID(ctx context.Context, arg GetOpinionByIDParams) (GetOpinionByIDRow, error)
- func (q *Queries) GetOpinionReplies(ctx context.Context, arg GetOpinionRepliesParams) ([]GetOpinionRepliesRow, error)
- func (q *Queries) GetOpinionsByTalkSessionID(ctx context.Context, arg GetOpinionsByTalkSessionIDParams) ([]GetOpinionsByTalkSessionIDRow, error)
- func (q *Queries) GetOpinionsByUserID(ctx context.Context, arg GetOpinionsByUserIDParams) ([]GetOpinionsByUserIDRow, error)
- func (q *Queries) GetOwnTalkSessionByUserID(ctx context.Context, arg GetOwnTalkSessionByUserIDParams) ([]GetOwnTalkSessionByUserIDRow, error)
- func (q *Queries) GetParentOpinions(ctx context.Context, arg GetParentOpinionsParams) ([]GetParentOpinionsRow, error)
- func (q *Queries) GetRandomOpinions(ctx context.Context, arg GetRandomOpinionsParams) ([]GetRandomOpinionsRow, error)
- func (q *Queries) GetReportByTalkSessionId(ctx context.Context, talkSessionID uuid.UUID) (TalkSessionReport, error)
- func (q *Queries) GetRepresentativeOpinionsByTalkSessionId(ctx context.Context, talkSessionID uuid.UUID) ([]GetRepresentativeOpinionsByTalkSessionIdRow, error)
- func (q *Queries) GetRespondTalkSessionByUserID(ctx context.Context, arg GetRespondTalkSessionByUserIDParams) ([]GetRespondTalkSessionByUserIDRow, error)
- func (q *Queries) GetTalkSessionByID(ctx context.Context, talkSessionID uuid.UUID) (GetTalkSessionByIDRow, error)
- func (q *Queries) GetTalkSessionConclusionByID(ctx context.Context, talkSessionID uuid.UUID) (GetTalkSessionConclusionByIDRow, error)
- func (q *Queries) GetUserAuthByUserID(ctx context.Context, userID uuid.UUID) (UserAuth, error)
- func (q *Queries) GetUserByID(ctx context.Context, userID uuid.UUID) (User, error)
- func (q *Queries) GetUserBySubject(ctx context.Context, subject string) (GetUserBySubjectRow, error)
- func (q *Queries) GetUserDemographicsByUserID(ctx context.Context, userID uuid.UUID) (UserDemographic, error)
- func (q *Queries) ListTalkSessions(ctx context.Context, arg ListTalkSessionsParams) ([]ListTalkSessionsRow, error)
- func (q *Queries) UpdateActionItem(ctx context.Context, arg UpdateActionItemParams) error
- func (q *Queries) UpdateOrCreateUserDemographics(ctx context.Context, arg UpdateOrCreateUserDemographicsParams) error
- func (q *Queries) UpdateSequencesByActionItemID(ctx context.Context, arg UpdateSequencesByActionItemIDParams) error
- func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) error
- func (q *Queries) UpdateTalkSessionConclusion(ctx context.Context, arg UpdateTalkSessionConclusionParams) error
- func (q *Queries) UpdateTalkSessionLocation(ctx context.Context, arg UpdateTalkSessionLocationParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) UserFindByDisplayID(ctx context.Context, displayID sql.NullString) (User, error)
- func (q *Queries) VerifyUser(ctx context.Context, userID uuid.UUID) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RepresentativeOpinion
- type Session
- type TalkSession
- type TalkSessionConclusion
- type TalkSessionGeneratedImage
- type TalkSessionLocation
- type TalkSessionReport
- type UpdateActionItemParams
- type UpdateOrCreateUserDemographicsParams
- type UpdateSequencesByActionItemIDParams
- type UpdateSessionParams
- type UpdateTalkSessionConclusionParams
- type UpdateTalkSessionLocationParams
- type UpdateUserParams
- type User
- type UserAuth
- type UserDemographic
- type UserGroupInfo
- type Vote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionItem ¶
type CountOpinionsParams ¶
type CountTalkSessionsParams ¶
type CountTalkSessionsParams struct { Status sql.NullString UserID uuid.NullUUID Theme sql.NullString }
type CountTalkSessionsRow ¶
type CreateActionItemParams ¶
type CreateOpinionParams ¶
type CreateSessionParams ¶
type CreateTalkSessionParams ¶
type CreateTalkSessionParams struct { TalkSessionID uuid.UUID Theme string Description sql.NullString OwnerID uuid.UUID ScheduledEndTime time.Time CreatedAt time.Time City sql.NullString Prefecture sql.NullString }
type CreateUserAuthParams ¶
type CreateVoteParams ¶
type EditTalkSessionParams ¶
type GetActionItemByIDRow ¶
type GetGroupInfoByTalkSessionIdRow ¶
type GetGroupInfoByTalkSessionIdRow struct { PosX float64 PosY float64 GroupID int32 PerimeterIndex sql.NullInt32 DisplayID sql.NullString DisplayName sql.NullString IconUrl sql.NullString UserID uuid.UUID }
type GetOpinionByIDParams ¶
type GetOpinionByIDRow ¶
type GetOpinionByIDRow struct { OpinionID uuid.UUID TalkSessionID uuid.UUID UserID uuid.UUID ParentOpinionID uuid.NullUUID Title sql.NullString Content string ReferenceUrl sql.NullString PictureUrl sql.NullString CreatedAt time.Time DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString VoteType int16 CurrentVoteType int16 }
type GetOpinionRepliesParams ¶
type GetOpinionRepliesRow ¶
type GetOpinionRepliesRow struct { OpinionID uuid.UUID TalkSessionID uuid.UUID UserID uuid.UUID ParentOpinionID uuid.NullUUID Title sql.NullString Content string ReferenceUrl sql.NullString PictureUrl sql.NullString CreatedAt time.Time DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString VoteType int16 CurrentVoteType int16 }
type GetOpinionsByTalkSessionIDRow ¶
type GetOpinionsByTalkSessionIDRow struct { OpinionID uuid.UUID TalkSessionID uuid.UUID UserID uuid.UUID ParentOpinionID uuid.NullUUID Title sql.NullString Content string ReferenceUrl sql.NullString PictureUrl sql.NullString CreatedAt time.Time DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString VoteType int16 ReplyCount int64 CurrentVoteType int16 }
type GetOpinionsByUserIDRow ¶
type GetOpinionsByUserIDRow struct { OpinionID uuid.UUID TalkSessionID uuid.UUID UserID uuid.UUID ParentOpinionID uuid.NullUUID Title sql.NullString Content string ReferenceUrl sql.NullString PictureUrl sql.NullString CreatedAt time.Time DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString VoteType int16 ReplyCount int64 }
type GetOwnTalkSessionByUserIDParams ¶
type GetOwnTalkSessionByUserIDParams struct { Limit int32 Offset int32 UserID uuid.NullUUID Status sql.NullString Theme sql.NullString }
type GetOwnTalkSessionByUserIDRow ¶
type GetOwnTalkSessionByUserIDRow struct { TalkSessionID uuid.UUID Theme string Description sql.NullString ScheduledEndTime time.Time City sql.NullString Prefecture sql.NullString CreatedAt time.Time OpinionCount int64 DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString LocationID uuid.NullUUID Latitude float64 Longitude float64 }
type GetParentOpinionsParams ¶
type GetParentOpinionsRow ¶
type GetParentOpinionsRow struct { OpinionID uuid.UUID TalkSessionID uuid.UUID UserID uuid.UUID ParentOpinionID uuid.NullUUID Title sql.NullString Content string ReferenceUrl sql.NullString PictureUrl sql.NullString CreatedAt time.Time DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString VoteType int16 ReplyCount int64 CurrentVoteType int16 Level int32 }
type GetRandomOpinionsParams ¶
type GetRandomOpinionsRow ¶
type GetRandomOpinionsRow struct { OpinionID uuid.UUID TalkSessionID uuid.UUID UserID uuid.UUID ParentOpinionID uuid.NullUUID Title sql.NullString Content string ReferenceUrl sql.NullString PictureUrl sql.NullString CreatedAt time.Time DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString ReplyCount int64 }
type GetRepresentativeOpinionsByTalkSessionIdRow ¶
type GetRepresentativeOpinionsByTalkSessionIdRow struct { GroupID int32 Rank int32 AgreeCount int32 DisagreeCount int32 PassCount int32 OpinionID uuid.NullUUID TalkSessionID uuid.NullUUID ParentOpinionID uuid.NullUUID Title sql.NullString Content sql.NullString ReferenceUrl sql.NullString PictureUrl sql.NullString CreatedAt sql.NullTime DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString ReplyCount int64 }
type GetRespondTalkSessionByUserIDParams ¶
type GetRespondTalkSessionByUserIDParams struct { Limit int32 Offset int32 UserID uuid.NullUUID Status sql.NullString Theme sql.NullString }
type GetRespondTalkSessionByUserIDRow ¶
type GetRespondTalkSessionByUserIDRow struct { TalkSessionID uuid.UUID Theme string Description sql.NullString ScheduledEndTime time.Time City sql.NullString Prefecture sql.NullString CreatedAt time.Time OpinionCount int64 DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString LocationID uuid.NullUUID Latitude float64 Longitude float64 }
type GetTalkSessionByIDRow ¶
type GetTalkSessionByIDRow struct { TalkSessionID uuid.UUID Theme string Description sql.NullString CreatedAt time.Time ScheduledEndTime time.Time City sql.NullString Prefecture sql.NullString OpinionCount int64 UserID uuid.NullUUID DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString LocationID uuid.NullUUID Latitude float64 Longitude float64 }
type GetUserBySubjectRow ¶
type GetUserBySubjectRow struct { UserID uuid.UUID DisplayID sql.NullString DisplayName sql.NullString Provider string Subject string CreatedAt time.Time IconUrl sql.NullString IsVerified bool }
type ListTalkSessionsParams ¶
type ListTalkSessionsParams struct { Limit int32 Offset int32 Latitude sql.NullFloat64 Longitude sql.NullFloat64 Status sql.NullString Theme sql.NullString SortKey sql.NullString }
type ListTalkSessionsRow ¶
type ListTalkSessionsRow struct { TalkSessionID uuid.UUID Theme string Description sql.NullString ScheduledEndTime time.Time City sql.NullString Prefecture sql.NullString CreatedAt time.Time OpinionCount int64 DisplayName sql.NullString DisplayID sql.NullString IconUrl sql.NullString LocationID uuid.NullUUID Latitude float64 Longitude float64 Distance interface{} }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddGeneratedImages ¶
func (q *Queries) AddGeneratedImages(ctx context.Context, arg AddGeneratedImagesParams) error
func (*Queries) CountOpinions ¶
func (*Queries) CountTalkSessions ¶
func (q *Queries) CountTalkSessions(ctx context.Context, arg CountTalkSessionsParams) (CountTalkSessionsRow, error)
talk_session_locationsがない場合も考慮
func (*Queries) CreateActionItem ¶
func (q *Queries) CreateActionItem(ctx context.Context, arg CreateActionItemParams) error
func (*Queries) CreateOpinion ¶
func (q *Queries) CreateOpinion(ctx context.Context, arg CreateOpinionParams) error
func (*Queries) CreateSession ¶
func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) error
func (*Queries) CreateTalkSession ¶
func (q *Queries) CreateTalkSession(ctx context.Context, arg CreateTalkSessionParams) error
func (*Queries) CreateTalkSessionConclusion ¶
func (q *Queries) CreateTalkSessionConclusion(ctx context.Context, arg CreateTalkSessionConclusionParams) error
func (*Queries) CreateTalkSessionLocation ¶
func (q *Queries) CreateTalkSessionLocation(ctx context.Context, arg CreateTalkSessionLocationParams) error
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
func (*Queries) CreateUserAuth ¶
func (q *Queries) CreateUserAuth(ctx context.Context, arg CreateUserAuthParams) error
func (*Queries) CreateVote ¶
func (q *Queries) CreateVote(ctx context.Context, arg CreateVoteParams) error
func (*Queries) EditTalkSession ¶
func (q *Queries) EditTalkSession(ctx context.Context, arg EditTalkSessionParams) error
func (*Queries) FindActiveSessionsByUserID ¶
func (*Queries) FindSessionBySessionID ¶
func (*Queries) FindVoteByUserIDAndOpinionID ¶
func (*Queries) GetActionItemByID ¶
func (*Queries) GetActionItemsByTalkSessionID ¶
func (*Queries) GetGeneratedImages ¶
func (*Queries) GetGroupInfoByTalkSessionId ¶
func (*Queries) GetGroupListByTalkSessionId ¶
func (*Queries) GetOpinionByID ¶
func (q *Queries) GetOpinionByID(ctx context.Context, arg GetOpinionByIDParams) (GetOpinionByIDRow, error)
親意見に対するユーザーの投票を取得 ユーザーIDが提供された場合、そのユーザーの投票ステータスを一緒に取得
func (*Queries) GetOpinionReplies ¶
func (q *Queries) GetOpinionReplies(ctx context.Context, arg GetOpinionRepliesParams) ([]GetOpinionRepliesRow, error)
親意見に対する子意見主の投票を取得 ユーザーIDが提供された場合、そのユーザーの投票ステータスを取得
func (*Queries) GetOpinionsByTalkSessionID ¶
func (q *Queries) GetOpinionsByTalkSessionID(ctx context.Context, arg GetOpinionsByTalkSessionIDParams) ([]GetOpinionsByTalkSessionIDRow, error)
func (*Queries) GetOpinionsByUserID ¶
func (q *Queries) GetOpinionsByUserID(ctx context.Context, arg GetOpinionsByUserIDParams) ([]GetOpinionsByUserIDRow, error)
latest, mostReply, oldestでソート
func (*Queries) GetOwnTalkSessionByUserID ¶
func (q *Queries) GetOwnTalkSessionByUserID(ctx context.Context, arg GetOwnTalkSessionByUserIDParams) ([]GetOwnTalkSessionByUserIDRow, error)
func (*Queries) GetParentOpinions ¶
func (q *Queries) GetParentOpinions(ctx context.Context, arg GetParentOpinionsParams) ([]GetParentOpinionsRow, error)
func (*Queries) GetRandomOpinions ¶
func (q *Queries) GetRandomOpinions(ctx context.Context, arg GetRandomOpinionsParams) ([]GetRandomOpinionsRow, error)
指定されたユーザーが投票していない意見のみを取得 この意見に対するリプライ数 グループ内のランクを取得 トークセッションに紐づく意見のみを取得
func (*Queries) GetReportByTalkSessionId ¶
func (*Queries) GetRepresentativeOpinionsByTalkSessionId ¶
func (*Queries) GetRespondTalkSessionByUserID ¶
func (q *Queries) GetRespondTalkSessionByUserID(ctx context.Context, arg GetRespondTalkSessionByUserIDParams) ([]GetRespondTalkSessionByUserIDRow, error)
func (*Queries) GetTalkSessionByID ¶
func (*Queries) GetTalkSessionConclusionByID ¶
func (*Queries) GetUserAuthByUserID ¶
func (*Queries) GetUserByID ¶
func (*Queries) GetUserBySubject ¶
func (*Queries) GetUserDemographicsByUserID ¶
func (*Queries) ListTalkSessions ¶
func (q *Queries) ListTalkSessions(ctx context.Context, arg ListTalkSessionsParams) ([]ListTalkSessionsRow, error)
func (*Queries) UpdateActionItem ¶
func (q *Queries) UpdateActionItem(ctx context.Context, arg UpdateActionItemParams) error
func (*Queries) UpdateOrCreateUserDemographics ¶
func (q *Queries) UpdateOrCreateUserDemographics(ctx context.Context, arg UpdateOrCreateUserDemographicsParams) error
func (*Queries) UpdateSequencesByActionItemID ¶
func (q *Queries) UpdateSequencesByActionItemID(ctx context.Context, arg UpdateSequencesByActionItemIDParams) error
指定したActionItemいよりSequenceが大きいものをすべて+1する
func (*Queries) UpdateSession ¶
func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) error
func (*Queries) UpdateTalkSessionConclusion ¶
func (q *Queries) UpdateTalkSessionConclusion(ctx context.Context, arg UpdateTalkSessionConclusionParams) error
func (*Queries) UpdateTalkSessionLocation ¶
func (q *Queries) UpdateTalkSessionLocation(ctx context.Context, arg UpdateTalkSessionLocationParams) error
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
func (*Queries) UserFindByDisplayID ¶
func (*Queries) VerifyUser ¶
type RepresentativeOpinion ¶
type TalkSession ¶
type TalkSession struct { TalkSessionID uuid.UUID OwnerID uuid.UUID Theme string ScheduledEndTime time.Time CreatedAt time.Time City sql.NullString Prefecture sql.NullString Description sql.NullString }
type TalkSessionConclusion ¶
type TalkSessionLocation ¶
type TalkSessionReport ¶
type UpdateActionItemParams ¶
type UpdateSessionParams ¶
type UpdateUserParams ¶
type UpdateUserParams struct { UserID uuid.UUID DisplayID sql.NullString DisplayName sql.NullString IconUrl sql.NullString }
type User ¶
type User struct { UserID uuid.UUID DisplayID sql.NullString DisplayName sql.NullString IconUrl sql.NullString CreatedAt time.Time UpdatedAt time.Time }
type UserDemographic ¶
type UserGroupInfo ¶
Click to show internal directories.
Click to hide internal directories.