package metas
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const PROVIDER = "metas_providers"
|
|
|
|
type Provider struct {
|
|
Id string `json:"id,omitempty" xql:"id,pk"`
|
|
FullName string `json:"fullName"`
|
|
ShortName string `json:"shortName"`
|
|
Description string `json:"description"`
|
|
AppName string `json:"appName"`
|
|
AppKey string `json:"appKey"`
|
|
Created *time.Time `json:"created,omitempty"`
|
|
Updated *time.Time `json:"updated,omitempty"`
|
|
}
|
|
const PROVIDERCATEGORY = "metas_provider_categories"
|
|
|
|
type ProviderCategory struct {
|
|
ProviderId string `json:"providerId" xql:",pk"`
|
|
CategoryId string `json:"categoryId" xql:",pk"`
|
|
RefId string `json:"refId"`
|
|
Allowed string `json:"allowed"`
|
|
AutoPub bool `json:"autoPub" xql:"auto_pub"`
|
|
Created *time.Time `json:"created,omitempty"`
|
|
Updated *time.Time `json:"updated,omitempty"`
|
|
}
|