mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-09 18:06:45 +08:00
* feat(issues): add revision-aware concurrency guards * fix(concurrency): decouple text edits from aggregate revisions
23 lines
650 B
Go
23 lines
650 B
Go
package db
|
|
|
|
// Attachment converts the sqlc row returned by the CTE-backed create query
|
|
// into the canonical model used by the rest of the application.
|
|
func (r CreateAttachmentRow) Attachment() Attachment {
|
|
return Attachment{
|
|
ID: r.ID,
|
|
WorkspaceID: r.WorkspaceID,
|
|
IssueID: r.IssueID,
|
|
CommentID: r.CommentID,
|
|
UploaderType: r.UploaderType,
|
|
UploaderID: r.UploaderID,
|
|
Filename: r.Filename,
|
|
Url: r.Url,
|
|
ContentType: r.ContentType,
|
|
SizeBytes: r.SizeBytes,
|
|
CreatedAt: r.CreatedAt,
|
|
ChatSessionID: r.ChatSessionID,
|
|
ChatMessageID: r.ChatMessageID,
|
|
TaskID: r.TaskID,
|
|
}
|
|
}
|