Documentation ¶
Index ¶
- Constants
- Variables
- func AddOne(object Object) (ObjectId string)
- func AddUser(u User) string
- func DeductImpressionNumber(campaignId, number int) (err error)
- func Delete(ObjectId string)
- func DeleteUser(uid string)
- func GetAll() map[string]*Object
- func GetAllUsers() map[string]*User
- func GetDevice(device Device) (deviceId int)
- func GetDeviceQuality(deviceId int) (ret []int)
- func GetLocationCodes(address string) (provinceCode, cityCode string)
- func Login(username, password string) bool
- func Update(ObjectId string, Score int64) (err error)
- func UpdateLastRequest(zone Zone) (err error)
- type AdUnits
- type Campaigns
- type Device
- type DevicePackageMatrix
- type Lov
- type Object
- type Profile
- type RegionalTargeting
- type User
- type Zone
Constants ¶
View Source
const ResCodeInputError = "30001"
View Source
const ResCodeNoAd = "20001"
View Source
const ResCodeSuccess = "00000"
Variables ¶
View Source
var (
Objects map[string]*Object
)
View Source
var (
UserList map[string]*User
)
Functions ¶
func DeductImpressionNumber ¶
func DeleteUser ¶
func DeleteUser(uid string)
func GetAllUsers ¶
func GetDeviceQuality ¶
func GetLocationCodes ¶
func UpdateLastRequest ¶
Types ¶
type AdUnits ¶
type AdUnits struct { AdvId int CampaignId int AdvType string AdvStatus string AdvClickUrlType string AdvClickUrl string AdvClickOpenType string AdvChtml string AdvMraid string AdvImpressionTrackingUrl string AdvImpressionTrackingUrlIresearch string AdvImpressionTrackingUrlAdmaster string AdvImpressionTrackingUrlNielsen string AdvCreativeUrl string AdvCreativeUrl2 string AdvCreativeUrl3 string }
type DevicePackageMatrix ¶
type RegionalTargeting ¶
Click to show internal directories.
Click to hide internal directories.