Documentation
¶
Overview ¶
====================================================
# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : validate.go # Created : 2019/1/15 15:22 # Last Modified : 2019/1/15 15:22 # Describe : # # ====================================================
Index ¶
- Variables
- type DBTemplate
- func (*DBTemplate) Descriptor() ([]byte, []int)
- func (m *DBTemplate) GetContent() string
- func (m *DBTemplate) GetCreatedAt() string
- func (m *DBTemplate) GetId() string
- func (m *DBTemplate) GetSimpleID() string
- func (m *DBTemplate) GetType() int32
- func (m *DBTemplate) GetUpdatedAt() string
- func (m *DBTemplate) Marshal() (dAtA []byte, err error)
- func (m *DBTemplate) MarshalTo(dAtA []byte) (int, error)
- func (*DBTemplate) ProtoMessage()
- func (m *DBTemplate) Reset()
- func (m *DBTemplate) Size() (n int)
- func (m *DBTemplate) String() string
- func (m *DBTemplate) Unmarshal(dAtA []byte) error
- func (m *DBTemplate) XXX_DiscardUnknown()
- func (m *DBTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DBTemplate) XXX_Merge(src proto.Message)
- func (m *DBTemplate) XXX_Size() int
- func (m *DBTemplate) XXX_Unmarshal(b []byte) error
- type TemplateAdder
- func (*TemplateAdder) Descriptor() ([]byte, []int)
- func (m *TemplateAdder) GetContent() string
- func (m *TemplateAdder) GetSimpleID() string
- func (m *TemplateAdder) GetType() int32
- func (m *TemplateAdder) Marshal() (dAtA []byte, err error)
- func (m *TemplateAdder) MarshalTo(dAtA []byte) (int, error)
- func (*TemplateAdder) ProtoMessage()
- func (m *TemplateAdder) Reset()
- func (m *TemplateAdder) Size() (n int)
- func (m *TemplateAdder) String() string
- func (m *TemplateAdder) Unmarshal(dAtA []byte) error
- func (m *TemplateAdder) Validate() error
- func (m *TemplateAdder) XXX_DiscardUnknown()
- func (m *TemplateAdder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TemplateAdder) XXX_Merge(src proto.Message)
- func (m *TemplateAdder) XXX_Size() int
- func (m *TemplateAdder) XXX_Unmarshal(b []byte) error
- type TemplateType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTemplate = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTemplate = fmt.Errorf("proto: integer overflow") )
View Source
var TemplateType_name = map[int32]string{
0: "Template_Unknown",
1: "Template_Sms",
2: "Template_WeChat",
3: "Template_Email",
}
View Source
var TemplateType_value = map[string]int32{
"Template_Unknown": 0,
"Template_Sms": 1,
"Template_WeChat": 2,
"Template_Email": 3,
}
Functions ¶
This section is empty.
Types ¶
type DBTemplate ¶
type DBTemplate struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` // @inject_tag: json:"simple_id,omitempty" db:"simple_id" SimpleID string `protobuf:"bytes,3,opt,name=simpleID,proto3" json:"simple_id,omitempty" db:"simple_id"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // @inject_tag: json:"created_at,omitempty" db:"created_at" CreatedAt string `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"created_at,omitempty" db:"created_at"` // @inject_tag: json:"updated_at,omitempty" db:"updated_at" UpdatedAt string `protobuf:"bytes,6,opt,name=updatedAt,proto3" json:"updated_at,omitempty" db:"updated_at"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DBTemplate) Descriptor ¶
func (*DBTemplate) Descriptor() ([]byte, []int)
func (*DBTemplate) GetContent ¶
func (m *DBTemplate) GetContent() string
func (*DBTemplate) GetCreatedAt ¶
func (m *DBTemplate) GetCreatedAt() string
func (*DBTemplate) GetId ¶
func (m *DBTemplate) GetId() string
func (*DBTemplate) GetSimpleID ¶
func (m *DBTemplate) GetSimpleID() string
func (*DBTemplate) GetType ¶
func (m *DBTemplate) GetType() int32
func (*DBTemplate) GetUpdatedAt ¶
func (m *DBTemplate) GetUpdatedAt() string
func (*DBTemplate) Marshal ¶
func (m *DBTemplate) Marshal() (dAtA []byte, err error)
func (*DBTemplate) ProtoMessage ¶
func (*DBTemplate) ProtoMessage()
func (*DBTemplate) Reset ¶
func (m *DBTemplate) Reset()
func (*DBTemplate) Size ¶
func (m *DBTemplate) Size() (n int)
func (*DBTemplate) String ¶
func (m *DBTemplate) String() string
func (*DBTemplate) Unmarshal ¶
func (m *DBTemplate) Unmarshal(dAtA []byte) error
func (*DBTemplate) XXX_DiscardUnknown ¶
func (m *DBTemplate) XXX_DiscardUnknown()
func (*DBTemplate) XXX_Marshal ¶
func (m *DBTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DBTemplate) XXX_Merge ¶
func (dst *DBTemplate) XXX_Merge(src proto.Message)
func (*DBTemplate) XXX_Size ¶
func (m *DBTemplate) XXX_Size() int
func (*DBTemplate) XXX_Unmarshal ¶
func (m *DBTemplate) XXX_Unmarshal(b []byte) error
type TemplateAdder ¶
type TemplateAdder struct { Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` // @inject_tag: json:"simple_id,omitempty" SimpleID string `protobuf:"bytes,2,opt,name=simpleID,proto3" json:"simple_id,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TemplateAdder) Descriptor ¶
func (*TemplateAdder) Descriptor() ([]byte, []int)
func (*TemplateAdder) GetContent ¶
func (m *TemplateAdder) GetContent() string
func (*TemplateAdder) GetSimpleID ¶
func (m *TemplateAdder) GetSimpleID() string
func (*TemplateAdder) GetType ¶
func (m *TemplateAdder) GetType() int32
func (*TemplateAdder) Marshal ¶
func (m *TemplateAdder) Marshal() (dAtA []byte, err error)
func (*TemplateAdder) ProtoMessage ¶
func (*TemplateAdder) ProtoMessage()
func (*TemplateAdder) Reset ¶
func (m *TemplateAdder) Reset()
func (*TemplateAdder) Size ¶
func (m *TemplateAdder) Size() (n int)
func (*TemplateAdder) String ¶
func (m *TemplateAdder) String() string
func (*TemplateAdder) Unmarshal ¶
func (m *TemplateAdder) Unmarshal(dAtA []byte) error
func (*TemplateAdder) Validate ¶
func (m *TemplateAdder) Validate() error
func (*TemplateAdder) XXX_DiscardUnknown ¶
func (m *TemplateAdder) XXX_DiscardUnknown()
func (*TemplateAdder) XXX_Marshal ¶
func (m *TemplateAdder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TemplateAdder) XXX_Merge ¶
func (dst *TemplateAdder) XXX_Merge(src proto.Message)
func (*TemplateAdder) XXX_Size ¶
func (m *TemplateAdder) XXX_Size() int
func (*TemplateAdder) XXX_Unmarshal ¶
func (m *TemplateAdder) XXX_Unmarshal(b []byte) error
type TemplateType ¶
type TemplateType int32
const ( Template_Unknown TemplateType = 0 Template_Sms TemplateType = 1 Template_WeChat TemplateType = 2 Template_Email TemplateType = 3 )
func (TemplateType) EnumDescriptor ¶
func (TemplateType) EnumDescriptor() ([]byte, []int)
func (TemplateType) String ¶
func (x TemplateType) String() string
Click to show internal directories.
Click to hide internal directories.