37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
/*
|
|
* Copyright 2026 Oleg Borodin <onborodin@gmail.com>
|
|
*
|
|
* This work is published and licensed under a Creative Commons
|
|
* Attribution-NonCommercial-NoDerivatives 4.0 International License.
|
|
*
|
|
* Distribution of this work is permitted, but commercial use and
|
|
* modifications are strictly prohibited.
|
|
*/
|
|
|
|
package descr
|
|
|
|
type Grant struct {
|
|
ID string `json:"id" db:"id"`
|
|
AccountID string `json:"accountID" db:"account_id"`
|
|
Operation string `json:"operation" db:"operation"`
|
|
Pattern string `json:"pattern" db:"pattern"`
|
|
CreatedAt string `json:"createdAt" db:"created_at"`
|
|
UpdatedAt string `json:"updatedAt" db:"updated_at"`
|
|
CreatedBy string `json:"createdBy" db:"created_by"`
|
|
UpdatedBy string `json:"updatedBy" db:"updated_by"`
|
|
}
|
|
|
|
type GrantShort struct {
|
|
Operation string `json:"operation" db:"operation"`
|
|
Pattern string `json:"pattern" db:"pattern"`
|
|
CreatedAt string `json:"createdAt" db:"created_at"`
|
|
UpdatedAt string `json:"updatedAt" db:"updated_at"`
|
|
CreatedBy string `json:"createdBy" db:"created_by"`
|
|
UpdatedBy string `json:"updatedBy" db:"updated_by"`
|
|
}
|
|
|
|
const (
|
|
operFileinfo = "opFileinfo"
|
|
operPutFile = "opPutFile"
|
|
)
|