Files
online-backend/internal/identity/roleusers/dto.go
GuwandykA 8795ae2195 Put the user's role and branch on GET /profile, upsert role_user and branch_user on POST, and drop their list endpoints.
Also accept flexible card-order form values, move mock seed under db/mock, and regenerate Swagger.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 17:56:07 +05:00

19 lines
460 B
Go

package roleusers
import "time"
type RoleUserDTO struct {
Id int64 `json:"id"`
UserId int64 `json:"userId"`
UserName string `json:"userName"`
RoleId int64 `json:"roleId"`
RoleName string `json:"roleName"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type CreateRoleUserDTO struct {
RoleId int64 `json:"roleId" binding:"required"`
UserId int64 `json:"userId" binding:"required"`
}