crm/models/customer.go

42 lines
1.5 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"`
}
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"`
}
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"`
}