code.gitea.io/gitea@v1.22.3/modules/structs/activity.go (about)

     1  // Copyright 2023 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package structs
     5  
     6  import "time"
     7  
     8  type Activity struct {
     9  	ID        int64       `json:"id"`
    10  	UserID    int64       `json:"user_id"` // Receiver user
    11  	OpType    string      `json:"op_type"`
    12  	ActUserID int64       `json:"act_user_id"`
    13  	ActUser   *User       `json:"act_user"`
    14  	RepoID    int64       `json:"repo_id"`
    15  	Repo      *Repository `json:"repo"`
    16  	CommentID int64       `json:"comment_id"`
    17  	Comment   *Comment    `json:"comment"`
    18  	RefName   string      `json:"ref_name"`
    19  	IsPrivate bool        `json:"is_private"`
    20  	Content   string      `json:"content"`
    21  	Created   time.Time   `json:"created"`
    22  }