Documentation ¶
Index ¶
- func UnmarshalProposalList(list []Proposal) ([]entity.Proposal, error)
- type Customer
- type CustomerContact
- type Offering
- type Proposal
- type ProposalRepo
- func (r *ProposalRepo) CreateProposal(ctx context.Context, proposal entity.Proposal) (entity.Proposal, error)
- func (r *ProposalRepo) GetProposal(ctx context.Context, ID uint) (entity.Proposal, error)
- func (r *ProposalRepo) ListProposals(ctx context.Context, page int) ([]entity.Proposal, error)
- func (r *ProposalRepo) UpdateProposal(ctx context.Context, proposal entity.Proposal) (entity.Proposal, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomerContact ¶
type CustomerContact struct { gorm.Model Name string Email string Phone string CustomerID *uint Customer *Customer }
func (*CustomerContact) Marshal ¶
func (model *CustomerContact) Marshal(ent entity.CustomerContact) error
func (*CustomerContact) Unmarshal ¶
func (model *CustomerContact) Unmarshal() (entity.CustomerContact, error)
type Offering ¶
type Proposal ¶
type ProposalRepo ¶
func New ¶
func New(pg *postgres.Postgres) *ProposalRepo
func (*ProposalRepo) CreateProposal ¶
func (*ProposalRepo) GetProposal ¶
func (*ProposalRepo) ListProposals ¶
func (*ProposalRepo) UpdateProposal ¶
Click to show internal directories.
Click to hide internal directories.