45 lines
1.7 KiB
Go
45 lines
1.7 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Customer struct {
|
|
ID string `json:"id" csv:"id"`
|
|
CreatedAt time.Time `json:"createdAt" csv:"createdAt"`
|
|
CustomerName string `json:"customerName" csv:"customerName"`
|
|
IntendedProduct string `json:"intendedProduct" csv:"intendedProduct"`
|
|
Version string `json:"version" csv:"version"`
|
|
Description string `json:"description" csv:"description"`
|
|
Solution string `json:"solution" csv:"solution"`
|
|
Type string `json:"type" csv:"type"`
|
|
Module string `json:"module" csv:"module"`
|
|
StatusProgress string `json:"statusProgress" csv:"statusProgress"`
|
|
Reporter string `json:"reporter" csv:"reporter"`
|
|
Screenshots []string `json:"screenshots" csv:"screenshots"`
|
|
}
|
|
|
|
type CreateCustomerRequest struct {
|
|
CustomerName string `json:"customerName"`
|
|
IntendedProduct string `json:"intendedProduct"`
|
|
Version string `json:"version"`
|
|
Description string `json:"description"`
|
|
Solution string `json:"solution"`
|
|
Type string `json:"type"`
|
|
Module string `json:"module"`
|
|
StatusProgress string `json:"statusProgress"`
|
|
Reporter string `json:"reporter"`
|
|
Screenshots []string `json:"screenshots"`
|
|
}
|
|
|
|
type UpdateCustomerRequest struct {
|
|
CustomerName *string `json:"customerName"`
|
|
IntendedProduct *string `json:"intendedProduct"`
|
|
Version *string `json:"version"`
|
|
Description *string `json:"description"`
|
|
Solution *string `json:"solution"`
|
|
Type *string `json:"type"`
|
|
Module *string `json:"module"`
|
|
StatusProgress *string `json:"statusProgress"`
|
|
Reporter *string `json:"reporter"`
|
|
Screenshots *[]string `json:"screenshots"`
|
|
}
|