models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TableSendSMS ...
	TableSendSMS = "send_sms"

	SUBMIT_STATUS_NOT_SEND  = 0
	SUBMIT_STATUS_SUBMITTED = 1
	SUBMIT_STATUS_SUCC      = 2
	SUBMIT_STATUS_FAIL      = 3
)
View Source
const (
	// TableReceiveSMS ...
	TableReceiveSMS = "receive_sms"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReceiveSMS

type ReceiveSMS struct {
	Id      uint64
	Isdn    uint64
	Content string

	Is_processed    bool
	Process_expired time.Time

	Request_check_errcode sql.NullInt64
	Request_check_message sql.NullString

	Request_charge_errcode sql.NullInt64
	Request_charge_message sql.NullString

	Request_pay_errcode sql.NullInt64
	Request_pay_message sql.NullString

	Created_at time.Time
}

ReceiveSMS ...

type SendSMS

type SendSMS struct {
	Id                 uint64
	Alias              string
	Isdn               uint64
	Content            string
	Submit_status      byte // 0: not send, 1: submitted, 2: status success, 3: status fail
	Submit_expired     time.Time
	Submit_status_code int32
	Smsc_message_id    int64
	Created_at         time.Time
}

SendSMS ...

type SendSMSReq

type SendSMSReq struct {
	Id      uint64
	Alias   string
	Content string
}

SendSMSReq ...

Jump to

Keyboard shortcuts

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