52 lines
971 B
Go
52 lines
971 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type PurchaseCategoryResponse struct {
|
|
ID uuid.UUID
|
|
OrganizationID uuid.UUID
|
|
PresetID *uuid.UUID
|
|
ParentID *uuid.UUID
|
|
Code string
|
|
Name string
|
|
Type string
|
|
SortOrder int
|
|
IsSystem bool
|
|
IsActive bool
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type CreatePurchaseCategoryRequest struct {
|
|
OrganizationID uuid.UUID
|
|
ParentID *uuid.UUID
|
|
Code *string
|
|
Name string
|
|
Type string
|
|
SortOrder int
|
|
IsActive bool
|
|
}
|
|
|
|
type UpdatePurchaseCategoryRequest struct {
|
|
ParentID *uuid.UUID
|
|
Code *string
|
|
Name *string
|
|
Type *string
|
|
SortOrder *int
|
|
IsActive *bool
|
|
}
|
|
|
|
type ListPurchaseCategoriesRequest struct {
|
|
OrganizationID uuid.UUID
|
|
ParentID *uuid.UUID
|
|
Type string
|
|
Search string
|
|
IsActive *bool
|
|
Page int
|
|
Limit int
|
|
}
|