Files
online-backend/internal/identity/permissionuser/dto.go
GuwandykA 28509eb4ca
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
Add backups, currencies and dashboard APIs, and scope access by guard_name.
Web users may only CRUD their own records, operators stay in assigned branches, and admin/manager/superadmin keep full access.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 18:14:47 +05:00

21 lines
659 B
Go

package permissionuser
import "time"
type PermissionUserDTO struct {
Id int64 `json:"id"`
UserId int64 `json:"userId"`
UserName string `json:"userName"`
PermissionId int64 `json:"permissionId"`
PermissionName string `json:"permissionName"`
Effect string `json:"effect"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type CreatePermissionUserDTO struct {
PermissionId int64 `json:"permissionId" binding:"required"`
UserId int64 `json:"userId" binding:"required"`
Effect string `json:"effect" binding:"required,oneof=allow deny"`
}