Documentation ¶
Index ¶
- Variables
- func CreateUser() (UserCore.FieldsUserType, error)
- func Delete(action string, params interface{}) ([]byte, error)
- func DeleteUser(id int64) error
- func Get(action string) ([]byte, error)
- func GetConfig(markList []string) ([]BaseConfig.FieldsConfigType, error)
- func GetNewToken() (int64, string, error)
- func GetUserData() (UserCore.DataUserDataType, error)
- func LoginUserByPassword() (token int64, key string, userData UserCore.DataUserDataType, err error)
- func Patch(action string, params interface{}) ([]byte, error)
- func Post(action string, params interface{}) ([]byte, error)
- func Put(action string, params interface{}) ([]byte, error)
- func SendSMS(nationCode, phone string) error
- func SetBaseURL(tBaseURL string)
- func SetToken(tToken int64, tKey string)
- func UpdateUserGroups(id int64, groupMark string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LoginUsername = "weeekj_admin" LoginPassword = "weeekj_admin_weeekj_admin" LoginNationCode = "86" LoginPhone = "17000000001" )
Functions ¶
func CreateUser ¶
func CreateUser() (UserCore.FieldsUserType, error)
创建临时使用的用户 自动授权基础用户组权限,可调整其他用户组,用于权限封闭测试
func LoginUserByPassword ¶
func LoginUserByPassword() (token int64, key string, userData UserCore.DataUserDataType, err error)
使用标准接口登陆 注意应关闭验证码,否则将失败 url: /v2/login/login/header/user/password
func SetBaseURL ¶
func SetBaseURL(tBaseURL string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.