2014-06-21 21:22:38 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Server struct {
|
|
|
|
ID int64 `meddler:"server_id,pk" json:"id"`
|
|
|
|
Name string `meddler:"server_name" json:"name"`
|
|
|
|
Host string `meddler:"server_host" json:"host"`
|
|
|
|
User string `meddler:"server_user" json:"user"`
|
|
|
|
Pass string `meddler:"server_pass" json:"name"`
|
|
|
|
Cert string `meddler:"server_cert" json:"cert"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SMTPServer struct {
|
|
|
|
ID int64 `meddler:"smtp_id,pk" json:"id"`
|
|
|
|
From string `meddler:"smtp_from" json:"from"`
|
|
|
|
Host string `meddler:"smtp_host" json:"host"`
|
2014-06-22 00:45:20 +00:00
|
|
|
Port string `meddler:"smtp_port" json:"port"`
|
2014-06-21 21:22:38 +00:00
|
|
|
User string `meddler:"smtp_user" json:"user"`
|
|
|
|
Pass string `meddler:"smtp_pass" json:"name"`
|
|
|
|
}
|