cms

package
v0.15.95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrg

func CreateOrg(name string) (int, error)

func CreateSite

func CreateSite(orgID int, skinID int, mobileSkinID int, name string) (int, error)

func DeleteUser

func DeleteUser(id int) error

func InitCms

func InitCms(cmsUrl string)

func Login

func Login(username string, pwd string) (string, error)

func RegisterUser

func RegisterUser(orgID int, username string, pwd string) (int, error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL