Documentation ¶
Index ¶
- func CheckTaskDueStatus()
- func CreateToken(email, customerid string) (string, error)
- func ExtractCustomerID(jwtToken string, secretKey string) (string, error)
- func GenerateUniqueCustomerID() string
- func GetRandomString(length int) string
- func InitCustomerService(collection1, collection2, collection3 *mongo.Collection, ctx context.Context) interfaces.Customer
- func IsValidUser(user *models.Login) (bool, models.Customer)
- func RunTaskDueStatusChecker()
- func TaskRemainderSMSNotification(task models.Task, customer *models.Customer)
- type CustomerService
- func (p *CustomerService) CreateCustomer(user *models.Customer) (*models.CustomerResponse, error)
- func (p *CustomerService) CreateTask(user *models.Task) (*models.Task, error)
- func (p *CustomerService) DeleteTask(user *models.EditTaskDetails) error
- func (p *CustomerService) EditTask(user *models.EditTaskDetails) (*models.Task, error)
- func (p *CustomerService) GetTask(user1 *models.EditTaskDetails) ([]models.Task3, error)
- func (p *CustomerService) GetbyTaskId(user *models.EditTaskDetails) (*models.Task, error)
- func (p *CustomerService) InsertToken(user *models.Token) (*models.TokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTaskDueStatus ¶
func CheckTaskDueStatus()
----------------> CheckTaskDueStatus------------>
func CreateToken ¶
func GenerateUniqueCustomerID ¶
func GenerateUniqueCustomerID() string
func GetRandomString ¶
Custom function to generate random characters (for demonstration purposes)
func InitCustomerService ¶
func InitCustomerService(collection1, collection2, collection3 *mongo.Collection, ctx context.Context) interfaces.Customer
func RunTaskDueStatusChecker ¶
func RunTaskDueStatusChecker()
Types ¶
type CustomerService ¶
type CustomerService struct { CustomerCollection *mongo.Collection TokenCollection *mongo.Collection TaskCollection *mongo.Collection // contains filtered or unexported fields }
func (*CustomerService) CreateCustomer ¶
func (p *CustomerService) CreateCustomer(user *models.Customer) (*models.CustomerResponse, error)
func (*CustomerService) CreateTask ¶
func (*CustomerService) DeleteTask ¶
func (p *CustomerService) DeleteTask(user *models.EditTaskDetails) error
func (*CustomerService) EditTask ¶
func (p *CustomerService) EditTask(user *models.EditTaskDetails) (*models.Task, error)
func (*CustomerService) GetTask ¶
func (p *CustomerService) GetTask(user1 *models.EditTaskDetails) ([]models.Task3, error)
Get task by customerid and save as *pdf ----->
func (*CustomerService) GetbyTaskId ¶
func (p *CustomerService) GetbyTaskId(user *models.EditTaskDetails) (*models.Task, error)
func (*CustomerService) InsertToken ¶
func (p *CustomerService) InsertToken(user *models.Token) (*models.TokenResponse, error)
Click to show internal directories.
Click to hide internal directories.