model

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package model is a generated protocol buffer package.

It is generated from these files:

app/service/main/sms/model/model.proto

It has these top-level messages:

ModelTemplate
ModelSend
ModelUserActionLog
ModelTask

Index

Constants

View Source
const (
	// TemplateStatusNew .
	TemplateStatusNew = 0 // 新建
	// TemplateStatusApprovel .
	TemplateStatusApprovel = 1 // 已审核
	// TemplateStatusCanceled .
	TemplateStatusCanceled = 2 // 已取消
)

短信模板状态

View Source
const (
	// ProviderMengWang .
	ProviderMengWang = int32(2)
	// ProviderChuangLan
	ProviderChuangLan = int32(4)
)

运营商

View Source
const (
	// TypeSms 验证码
	TypeSms = int32(1)
	// TypeActSms 营销短信
	TypeActSms = int32(2)
	// TypeActBatch 批量营销
	TypeActBatch = int32(3)
)

短信类型

View Source
const (
	// UserActionTypeSend 日志类型为发送
	UserActionTypeSend = int32(1)
	// UserActionCallback 日志类型为回执
	UserActionCallback = int32(2)

	// UserActionSendFailedStatus 发送失败的日志状态
	UserActionSendFailedStatus = "SUBMIT FAILED"
	// UserActionSendFailedDesc 发送失败的日志描述
	UserActionSendFailedDesc = "短信提交失败"
	// UserActionSendSuccessStatus 提交成功的日志状态
	UserActionSendSuccessStatus = "SUBMIT SUCCESS"
	// UserActionSendSuccessDesc 提交失败的日志描述
	UserActionSendSuccessDesc = "短信提交成功"
)

短信回执用户行为日志

View Source
const (
	// StatusNew .
	StatusNew = int32(0)
	// StatusSuccess .
	StatusSuccess = int32(1)
	// StatusFail .
	StatusFail = int32(2)
)

短信状态

View Source
const (
	// TaskTypeMobile 按手机号发送
	TaskTypeMobile = int32(1)
	// TaskTypeMid 按mid发送
	TaskTypeMid = int32(2)
)

短信任务类型

View Source
const (
	// TaskStatusPrepared 准备发
	TaskStatusPrepared = int32(1)
	// TaskStatusDoing 进行中
	TaskStatusDoing = int32(2)
	// TaskStatusSuccess 发送成功
	TaskStatusSuccess = int32(3)
	// TaskStatusFailed 发送失败
	TaskStatusFailed = int32(4)
	// TaskStatusStop 停止发送
	TaskStatusStop = int32(5)
)

短信任务状态

View Source
const (
	// CountryChina .
	CountryChina = "86" // 中国地区码
)

Variables

View Source
var (
	ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModel   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type ArgMid

type ArgMid struct {
	Mid    int64
	RealIP string
}

ArgMid is rpc mid params.

type ArgSend

type ArgSend struct {
	Mid     int64
	RealIP  string
	Mobile  string
	Country string
	Tcode   string
	Tparam  string
}

ArgSend send sms

type ArgSendBatch

type ArgSendBatch struct {
	Mids    []int64
	RealIP  string
	Mobiles []string
	Tcode   string
	Tparam  string
}

ArgSendBatch send batch

type ArgUserActionLog

type ArgUserActionLog struct {
	MsgID    string // 发送短信时服务商返回的随机ID
	Mobile   string
	Content  string // 短信内容
	Status   string // 回执状态
	Desc     string // 回执状态描述
	Provider int    // 短信服务商ID
	Type     int    // 短信类型,验证码/国际/营销
	Action   int    // 操作类型,发送或回执
	Ts       int64  // 操作时间
}

ArgUserActionLog add user action log

type ModelSend

type ModelSend struct {
	ID      int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Mid     string `protobuf:"bytes,2,opt,name=mid,proto3" json:"mid,omitempty"`
	Mobile  string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	Code    string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	Status  int32  `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
	Type    int32  `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"`
	Pid     int32  `protobuf:"varint,9,opt,name=pid,proto3" json:"pid,omitempty"`
}

func (*ModelSend) Descriptor

func (*ModelSend) Descriptor() ([]byte, []int)

func (*ModelSend) GetCode

func (m *ModelSend) GetCode() string

func (*ModelSend) GetContent

func (m *ModelSend) GetContent() string

func (*ModelSend) GetCountry

func (m *ModelSend) GetCountry() string

func (*ModelSend) GetID

func (m *ModelSend) GetID() int64

func (*ModelSend) GetMid

func (m *ModelSend) GetMid() string

func (*ModelSend) GetMobile

func (m *ModelSend) GetMobile() string

func (*ModelSend) GetPid

func (m *ModelSend) GetPid() int32

func (*ModelSend) GetStatus

func (m *ModelSend) GetStatus() int32

func (*ModelSend) GetType

func (m *ModelSend) GetType() int32

func (*ModelSend) Marshal

func (m *ModelSend) Marshal() (dAtA []byte, err error)

func (*ModelSend) MarshalTo

func (m *ModelSend) MarshalTo(dAtA []byte) (int, error)

func (*ModelSend) ProtoMessage

func (*ModelSend) ProtoMessage()

func (*ModelSend) Reset

func (m *ModelSend) Reset()

func (*ModelSend) Size

func (m *ModelSend) Size() (n int)

func (*ModelSend) String

func (m *ModelSend) String() string

func (*ModelSend) Unmarshal

func (m *ModelSend) Unmarshal(dAtA []byte) error

type ModelTask

type ModelTask struct {
	ID              int64                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Type            int32                       `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	BusinessID      int32                       `protobuf:"varint,3,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty"`
	TemplateCode    string                      `protobuf:"bytes,4,opt,name=template_code,json=templateCode,proto3" json:"template_code,omitempty"`
	TemplateContent string                      `protobuf:"bytes,5,opt,name=template_content,json=templateContent,proto3" json:"template_content,omitempty" gorm:"-"`
	Desc            string                      `protobuf:"bytes,6,opt,name=desc,proto3" json:"desc,omitempty"`
	FileName        string                      `protobuf:"bytes,7,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	FilePath        string                      `protobuf:"bytes,8,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	SendTime        go_common_library_time.Time `protobuf:"varint,9,opt,name=send_time,json=sendTime,proto3,casttype=go-common/library/time.Time" json:"send_time,omitempty"`
	Status          int32                       `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`
	Ctime           go_common_library_time.Time `protobuf:"varint,11,opt,name=ctime,proto3,casttype=go-common/library/time.Time" json:"ctime,omitempty" gorm:"column:ctime"`
	Mtime           go_common_library_time.Time `protobuf:"varint,12,opt,name=mtime,proto3,casttype=go-common/library/time.Time" json:"mtime,omitempty" gorm:"column:mtime"`
}

func (*ModelTask) Descriptor

func (*ModelTask) Descriptor() ([]byte, []int)

func (*ModelTask) GetBusinessID

func (m *ModelTask) GetBusinessID() int32

func (*ModelTask) GetCtime

func (m *ModelTask) GetCtime() go_common_library_time.Time

func (*ModelTask) GetDesc

func (m *ModelTask) GetDesc() string

func (*ModelTask) GetFileName

func (m *ModelTask) GetFileName() string

func (*ModelTask) GetFilePath

func (m *ModelTask) GetFilePath() string

func (*ModelTask) GetID

func (m *ModelTask) GetID() int64

func (*ModelTask) GetMtime

func (m *ModelTask) GetMtime() go_common_library_time.Time

func (*ModelTask) GetSendTime

func (m *ModelTask) GetSendTime() go_common_library_time.Time

func (*ModelTask) GetStatus

func (m *ModelTask) GetStatus() int32

func (*ModelTask) GetTemplateCode

func (m *ModelTask) GetTemplateCode() string

func (*ModelTask) GetTemplateContent

func (m *ModelTask) GetTemplateContent() string

func (*ModelTask) GetType

func (m *ModelTask) GetType() int32

func (*ModelTask) Marshal

func (m *ModelTask) Marshal() (dAtA []byte, err error)

func (*ModelTask) MarshalTo

func (m *ModelTask) MarshalTo(dAtA []byte) (int, error)

func (*ModelTask) ProtoMessage

func (*ModelTask) ProtoMessage()

func (*ModelTask) Reset

func (m *ModelTask) Reset()

func (*ModelTask) Size

func (m *ModelTask) Size() (n int)

func (*ModelTask) String

func (m *ModelTask) String() string

func (*ModelTask) Unmarshal

func (m *ModelTask) Unmarshal(dAtA []byte) error

type ModelTemplate

type ModelTemplate struct {
	ID        int64                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" json:"id"`
	Code      string                      `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty" json:"code"`
	Template  string                      `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty" json:"template"`
	Stype     int32                       `protobuf:"varint,4,opt,name=stype,proto3" json:"stype,omitempty" json:"stype"`
	Status    int32                       `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty" json:"status"`
	Approver  string                      `protobuf:"bytes,6,opt,name=approver,proto3" json:"approver,omitempty" json:"approver"`
	Submitter string                      `protobuf:"bytes,7,opt,name=submitter,proto3" json:"submitter,omitempty" json:"submitter"`
	Param     []string                    `protobuf:"bytes,8,rep,name=param" json:"param,omitempty" json:"param" gorm:"-"`
	Ctime     go_common_library_time.Time `` /* 134-byte string literal not displayed */
	Mtime     go_common_library_time.Time `` /* 135-byte string literal not displayed */
}

func (*ModelTemplate) Descriptor

func (*ModelTemplate) Descriptor() ([]byte, []int)

func (*ModelTemplate) GetApprover

func (m *ModelTemplate) GetApprover() string

func (*ModelTemplate) GetCode

func (m *ModelTemplate) GetCode() string

func (*ModelTemplate) GetCtime

func (*ModelTemplate) GetID

func (m *ModelTemplate) GetID() int64

func (*ModelTemplate) GetMtime

func (*ModelTemplate) GetParam

func (m *ModelTemplate) GetParam() []string

func (*ModelTemplate) GetStatus

func (m *ModelTemplate) GetStatus() int32

func (*ModelTemplate) GetStype

func (m *ModelTemplate) GetStype() int32

func (*ModelTemplate) GetSubmitter

func (m *ModelTemplate) GetSubmitter() string

func (*ModelTemplate) GetTemplate

func (m *ModelTemplate) GetTemplate() string

func (*ModelTemplate) Marshal

func (m *ModelTemplate) Marshal() (dAtA []byte, err error)

func (*ModelTemplate) MarshalTo

func (m *ModelTemplate) MarshalTo(dAtA []byte) (int, error)

func (*ModelTemplate) ProtoMessage

func (*ModelTemplate) ProtoMessage()

func (*ModelTemplate) Reset

func (m *ModelTemplate) Reset()

func (*ModelTemplate) Size

func (m *ModelTemplate) Size() (n int)

func (*ModelTemplate) String

func (m *ModelTemplate) String() string

func (*ModelTemplate) Unmarshal

func (m *ModelTemplate) Unmarshal(dAtA []byte) error

type ModelUserActionLog

type ModelUserActionLog struct {
	MsgID    string `protobuf:"bytes,1,opt,name=msgid,proto3" json:"msgid,omitempty"`
	Mobile   string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Content  string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Status   string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	Desc     string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"`
	Provider int32  `protobuf:"varint,6,opt,name=provider,proto3" json:"provider,omitempty"`
	Type     int32  `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"`
	Action   int32  `protobuf:"varint,8,opt,name=action,proto3" json:"action,omitempty"`
	Ts       int64  `protobuf:"varint,9,opt,name=ts,proto3" json:"ts,omitempty"`
}

func (*ModelUserActionLog) Descriptor

func (*ModelUserActionLog) Descriptor() ([]byte, []int)

func (*ModelUserActionLog) GetAction

func (m *ModelUserActionLog) GetAction() int32

func (*ModelUserActionLog) GetContent

func (m *ModelUserActionLog) GetContent() string

func (*ModelUserActionLog) GetDesc

func (m *ModelUserActionLog) GetDesc() string

func (*ModelUserActionLog) GetMobile

func (m *ModelUserActionLog) GetMobile() string

func (*ModelUserActionLog) GetMsgID

func (m *ModelUserActionLog) GetMsgID() string

func (*ModelUserActionLog) GetProvider

func (m *ModelUserActionLog) GetProvider() int32

func (*ModelUserActionLog) GetStatus

func (m *ModelUserActionLog) GetStatus() string

func (*ModelUserActionLog) GetTs

func (m *ModelUserActionLog) GetTs() int64

func (*ModelUserActionLog) GetType

func (m *ModelUserActionLog) GetType() int32

func (*ModelUserActionLog) Marshal

func (m *ModelUserActionLog) Marshal() (dAtA []byte, err error)

func (*ModelUserActionLog) MarshalTo

func (m *ModelUserActionLog) MarshalTo(dAtA []byte) (int, error)

func (*ModelUserActionLog) ProtoMessage

func (*ModelUserActionLog) ProtoMessage()

func (*ModelUserActionLog) Reset

func (m *ModelUserActionLog) Reset()

func (*ModelUserActionLog) Size

func (m *ModelUserActionLog) Size() (n int)

func (*ModelUserActionLog) String

func (m *ModelUserActionLog) String() string

func (*ModelUserActionLog) Unmarshal

func (m *ModelUserActionLog) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL