You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mass_msg.go
    path of file: ./repos/api-server/app/consumers
    
    the code of the file until where you have to start completion: package consumers

import (
	"openscrm/app/constants"
	"openscrm/app/models"
	"openscrm/app/services"
	"openscrm/common/delay_queue"
	"openscrm/common/log"
)

func SendMassMsg(job delay_queue.Job) error {
	log.Sugar.Info("job info:", job)
	if job.Topic == constants.MassMsgTopic {
		customerService := services.NewDefaultMassMsgService()
		msgID, err := customerService.SendMassMsgToWx(job.Body, job.ID)
		if err != nil {
			log.Sugar.Error(er
    
func SendMassMsg(job delay_queue.Job) error {
	log.Sugar.Info("job info:", job)
	if job.Topic == constants.MassMsgTopic {
		customerService := services.NewDefaultMassMsgService()
		msgID, err := customerService.SendMassMsgToWx(job.Body, job.ID)
		if err != nil {
			log.Sugar.Error(err)
			return err
		}
		msg := models.MassMsg{
			ExtCorpModel:  models.ExtCorpModel{ID: job.ID},
			ExtMsgID:      msgID,
			MissionStatus: constants.Sending,
		}
		// job body æ˜¯req
		err = models.DB.Where("id = ?", job.ID).Updates(&msg).Error
		if err != nil {
			return err
		}
		err = delay_queue.Remove(job.ID)
		if err != nil {
			return err
		}
	}
	return nil
}