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
- Variables
- type ArgMid
- type ArgSend
- type ArgSendBatch
- type ArgUserActionLog
- type ModelSend
- func (*ModelSend) Descriptor() ([]byte, []int)
- func (m *ModelSend) GetCode() string
- func (m *ModelSend) GetContent() string
- func (m *ModelSend) GetCountry() string
- func (m *ModelSend) GetID() int64
- func (m *ModelSend) GetMid() string
- func (m *ModelSend) GetMobile() string
- func (m *ModelSend) GetPid() int32
- func (m *ModelSend) GetStatus() int32
- func (m *ModelSend) GetType() int32
- func (m *ModelSend) Marshal() (dAtA []byte, err error)
- func (m *ModelSend) MarshalTo(dAtA []byte) (int, error)
- func (*ModelSend) ProtoMessage()
- func (m *ModelSend) Reset()
- func (m *ModelSend) Size() (n int)
- func (m *ModelSend) String() string
- func (m *ModelSend) Unmarshal(dAtA []byte) error
- type ModelTask
- func (*ModelTask) Descriptor() ([]byte, []int)
- func (m *ModelTask) GetBusinessID() int32
- func (m *ModelTask) GetCtime() go_common_library_time.Time
- func (m *ModelTask) GetDesc() string
- func (m *ModelTask) GetFileName() string
- func (m *ModelTask) GetFilePath() string
- func (m *ModelTask) GetID() int64
- func (m *ModelTask) GetMtime() go_common_library_time.Time
- func (m *ModelTask) GetSendTime() go_common_library_time.Time
- func (m *ModelTask) GetStatus() int32
- func (m *ModelTask) GetTemplateCode() string
- func (m *ModelTask) GetTemplateContent() string
- func (m *ModelTask) GetType() int32
- func (m *ModelTask) Marshal() (dAtA []byte, err error)
- func (m *ModelTask) MarshalTo(dAtA []byte) (int, error)
- func (*ModelTask) ProtoMessage()
- func (m *ModelTask) Reset()
- func (m *ModelTask) Size() (n int)
- func (m *ModelTask) String() string
- func (m *ModelTask) Unmarshal(dAtA []byte) error
- type ModelTemplate
- func (*ModelTemplate) Descriptor() ([]byte, []int)
- func (m *ModelTemplate) GetApprover() string
- func (m *ModelTemplate) GetCode() string
- func (m *ModelTemplate) GetCtime() go_common_library_time.Time
- func (m *ModelTemplate) GetID() int64
- func (m *ModelTemplate) GetMtime() go_common_library_time.Time
- func (m *ModelTemplate) GetParam() []string
- func (m *ModelTemplate) GetStatus() int32
- func (m *ModelTemplate) GetStype() int32
- func (m *ModelTemplate) GetSubmitter() string
- func (m *ModelTemplate) GetTemplate() string
- func (m *ModelTemplate) Marshal() (dAtA []byte, err error)
- func (m *ModelTemplate) MarshalTo(dAtA []byte) (int, error)
- func (*ModelTemplate) ProtoMessage()
- func (m *ModelTemplate) Reset()
- func (m *ModelTemplate) Size() (n int)
- func (m *ModelTemplate) String() string
- func (m *ModelTemplate) Unmarshal(dAtA []byte) error
- type ModelUserActionLog
- func (*ModelUserActionLog) Descriptor() ([]byte, []int)
- func (m *ModelUserActionLog) GetAction() int32
- func (m *ModelUserActionLog) GetContent() string
- func (m *ModelUserActionLog) GetDesc() string
- func (m *ModelUserActionLog) GetMobile() string
- func (m *ModelUserActionLog) GetMsgID() string
- func (m *ModelUserActionLog) GetProvider() int32
- func (m *ModelUserActionLog) GetStatus() string
- func (m *ModelUserActionLog) GetTs() int64
- func (m *ModelUserActionLog) GetType() int32
- func (m *ModelUserActionLog) Marshal() (dAtA []byte, err error)
- func (m *ModelUserActionLog) MarshalTo(dAtA []byte) (int, error)
- func (*ModelUserActionLog) ProtoMessage()
- func (m *ModelUserActionLog) Reset()
- func (m *ModelUserActionLog) Size() (n int)
- func (m *ModelUserActionLog) String() string
- func (m *ModelUserActionLog) Unmarshal(dAtA []byte) error
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 ArgSend ¶
type ArgSend struct { Mid int64 RealIP string Mobile string Country string Tcode string Tparam string }
ArgSend send sms
type ArgSendBatch ¶
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) GetContent ¶
func (*ModelSend) GetCountry ¶
func (*ModelSend) ProtoMessage ¶
func (*ModelSend) ProtoMessage()
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) GetBusinessID ¶
func (*ModelTask) GetCtime ¶
func (m *ModelTask) GetCtime() go_common_library_time.Time
func (*ModelTask) GetFileName ¶
func (*ModelTask) GetFilePath ¶
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) GetTemplateCode ¶
func (*ModelTask) GetTemplateContent ¶
func (*ModelTask) ProtoMessage ¶
func (*ModelTask) ProtoMessage()
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 (m *ModelTemplate) GetCtime() go_common_library_time.Time
func (*ModelTemplate) GetID ¶
func (m *ModelTemplate) GetID() int64
func (*ModelTemplate) GetMtime ¶
func (m *ModelTemplate) GetMtime() go_common_library_time.Time
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) 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
Click to show internal directories.
Click to hide internal directories.