txim/api/account.go

28 lines
703 B
Go
Raw Normal View History

2022-01-11 10:14:11 +08:00
package api
import (
"gitee.ltd/lxh/txim/api/param"
"gitee.ltd/lxh/txim/common"
)
// AccountImport 导入单个账号
func AccountImport(r *param.AccountImportReq) (*param.AccountImportRes, error) {
a := param.AccountImportRes{}
err := Api(common.AccountImport, r, &a)
return &a, err
}
// AccountCheck 检查账号是否存在
func AccountCheck(r *param.AccountCheckReq) (*param.AccountCheckRes, error) {
a := param.AccountCheckRes{}
err := Api(common.AccountCheck, r, &a)
return &a, err
}
// AccountDelete 账号删除
func AccountDelete(r *param.AccountDeleteReq) (*param.AccountDeleteRes, error) {
a := param.AccountDeleteRes{}
err := Api(common.AccountDelete, r, &a)
return &a, err
}