mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 06:25:31 +00:00
73776d6195
- Follow up for: #540, #802 - Add API routes for user blocking from user and organization perspective. - The new routes have integration testing. - The new model functions have unit tests. - Actually quite boring to write and to read this pull request. (cherry picked from commitf3afaf15c7
) (cherry picked from commit6d754db3e5
) (cherry picked from commitd0fc8bc9d3
) (cherry picked from commit9a53b0d1a0
) (cherry picked from commit44a2a4fd48
) (cherry picked from commit182025db9c
) (cherry picked from commit558a35963e
)
14 lines
296 B
Go
14 lines
296 B
Go
// Copyright 2023 The Forgejo Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package structs
|
|
|
|
import "time"
|
|
|
|
// BlockedUser represents a blocked user.
|
|
type BlockedUser struct {
|
|
BlockID int64 `json:"block_id"`
|
|
// swagger:strfmt date-time
|
|
Created time.Time `json:"created_at"`
|
|
}
|