Documentation ¶
Index ¶
- func CreateOrg(name string) (int, error)
- func CreateSite(orgID int, skinID int, mobileSkinID int, name string) (int, error)
- func DeleteUser(id int) error
- func InitCms(cmsUrl string)
- func Login(username string, pwd string) (string, error)
- func RegisterUser(orgID int, username string, pwd string) (int, error)
- type CreateOrgResponse
- type CreateSiteResponse
- type LoginResponse
- type RegisterUserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSite ¶
func DeleteUser ¶
Types ¶
type CreateOrgResponse ¶
type CreateOrgResponse struct { Data struct { Org struct { ID int `json:"id"` } `json:"org"` } `json:"data"` }
type CreateSiteResponse ¶
type CreateSiteResponse struct { Data struct { Site struct { ID int `json:"ID"` } `json:"site"` } `json:"data"` }
type LoginResponse ¶
type LoginResponse struct { Data struct { Token string `json:"token"` } `json:"data"` }
type RegisterUserResponse ¶
type RegisterUserResponse struct { Data struct { User struct { ID int `json:"ID"` } `json:"user"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.