Documentation ¶
Index ¶
- type Customer
- type CustomerDB
- func (c *CustomerDB) CommitLinkRequest(linkreq string, res string) error
- func (c *CustomerDB) CreateNew(phonenumber string, name string) (*Customer, error)
- func (c *CustomerDB) CreateRequest(req *RequestData) (string, error)
- func (c *CustomerDB) GetCustomer(phonenumber string) (bool, *Customer, error)
- func (db *CustomerDB) GetLinkRequestData(reqid string) (*RequestData, error)
- func (c *CustomerDB) GetPendingRequest(cust *Customer, ref string) (string, error)
- func (c *CustomerDB) UpdateCustomer(cust_id string, name string, gender string) error
- func (c *CustomerDB) UpdateLinkRequestCode(linkreq string, code string, slpart string) error
- func (c *CustomerDB) UpdateLinkRequestVoucher(linkreq string, vou_id string) error
- type RequestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerDB ¶
func NewCustomerDB ¶
func NewCustomerDB(conn *sql.DB) *CustomerDB
func (*CustomerDB) CommitLinkRequest ¶
func (c *CustomerDB) CommitLinkRequest(linkreq string, res string) error
func (*CustomerDB) CreateNew ¶
func (c *CustomerDB) CreateNew(phonenumber string, name string) (*Customer, error)
func (*CustomerDB) CreateRequest ¶
func (c *CustomerDB) CreateRequest(req *RequestData) (string, error)
func (*CustomerDB) GetCustomer ¶
func (c *CustomerDB) GetCustomer(phonenumber string) (bool, *Customer, error)
func (*CustomerDB) GetLinkRequestData ¶
func (db *CustomerDB) GetLinkRequestData(reqid string) (*RequestData, error)
func (*CustomerDB) GetPendingRequest ¶
func (c *CustomerDB) GetPendingRequest(cust *Customer, ref string) (string, error)
func (*CustomerDB) UpdateCustomer ¶
func (c *CustomerDB) UpdateCustomer(cust_id string, name string, gender string) error
func (*CustomerDB) UpdateLinkRequestCode ¶
func (c *CustomerDB) UpdateLinkRequestCode(linkreq string, code string, slpart string) error
func (*CustomerDB) UpdateLinkRequestVoucher ¶
func (c *CustomerDB) UpdateLinkRequestVoucher(linkreq string, vou_id string) error
Click to show internal directories.
Click to hide internal directories.