uc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UC_PWD_SECURITY_CONFIG_GET = apis.ApiSpec{
	Path:         "/api/users/actions/get-pwd-security-config",
	Scheme:       "http",
	Method:       "GET",
	Custom:       getPwdSecurityConfig,
	CheckLogin:   true,
	CheckToken:   true,
	ResponseType: apistructs.PwdSecurityConfigGetResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 查询密码安全配置",
}
View Source
var UC_PWD_SECURITY_CONFIG_UPDATE = apis.ApiSpec{
	Path:         "/api/users/actions/update-pwd-security-config",
	Scheme:       "http",
	Method:       "POST",
	Custom:       updatePwdSecurityConfig,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.PwdSecurityConfigUpdateRequest{},
	ResponseType: apistructs.PwdSecurityConfigUpdateResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 更新密码安全配置",
}
View Source
var UC_USER_BATCH_FREEZE = apis.ApiSpec{
	Path:         "/api/users/actions/batch-freeze",
	Scheme:       "http",
	Method:       "PUT",
	Custom:       batchFreezeUser,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserBatchFreezeRequest{},
	ResponseType: apistructs.UserBatchFreezeResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 批量用户冻结",
}
View Source
var UC_USER_BATCH_UNFREEZE = apis.ApiSpec{
	Path:         "/api/users/actions/batch-unfreeze",
	Scheme:       "http",
	Method:       "PUT",
	Custom:       batchUnFreezeUser,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserBatchUnFreezeRequest{},
	ResponseType: apistructs.UserBatchUnFreezeResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 批量用户解冻",
}
View Source
var UC_USER_BATCH_UPDATE_LOGIN_METHOD = apis.ApiSpec{
	Path:         "/api/users/actions/batch-update-login-method",
	Scheme:       "http",
	Method:       "POST",
	Custom:       batchUpdateLoginMethod,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserBatchUpdateLoginMethodRequest{},
	ResponseType: apistructs.UserBatchUpdateLoginMethodResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 批量修改用户登录方式",
}
View Source
var UC_USER_CREATE = apis.ApiSpec{
	Path:         "/api/users",
	Scheme:       "http",
	Method:       "POST",
	Custom:       createUsers,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserCreateRequest{},
	ResponseType: apistructs.UserCreateResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 用户创建",
}
View Source
var UC_USER_EXPORT = apis.ApiSpec{
	Path:        "/api/users/actions/export",
	Scheme:      "http",
	Method:      "GET",
	Custom:      exportUsers,
	RequestType: apistructs.UserPagingRequest{},
	CheckLogin:  true,
	CheckToken:  true,
	IsOpenAPI:   true,
	ChunkAPI:    true,
	Doc:         "summary: 导出用户",
}
View Source
var UC_USER_FREEZE = apis.ApiSpec{
	Path:         "/api/users/<userID>/actions/freeze",
	Scheme:       "http",
	Method:       "PUT",
	Custom:       freezeUser,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserFreezeRequest{},
	ResponseType: apistructs.UserFreezeResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 用户冻结",
}
View Source
var UC_USER_LIST_LOGIN_METHOD = apis.ApiSpec{
	Path:         "/api/users/actions/list-login-method",
	Scheme:       "http",
	Method:       "GET",
	Custom:       listLoginMethod,
	CheckLogin:   true,
	CheckToken:   true,
	ResponseType: apistructs.UserListLoginMethodResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 获取当前环境支持的登录方式",
}
View Source
var UC_USER_PAGING = apis.ApiSpec{
	Path:         "/api/users/actions/paging",
	Scheme:       "http",
	Method:       "GET",
	Custom:       pagingUsers,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserPagingRequest{},
	ResponseType: apistructs.UserPagingResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 用户分页",
}
View Source
var UC_USER_UNFREEZE = apis.ApiSpec{
	Path:         "/api/users/<userID>/actions/unfreeze",
	Scheme:       "http",
	Method:       "PUT",
	Custom:       unfreezeUser,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserUnfreezeRequest{},
	ResponseType: apistructs.UserUnfreezeResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 用户解冻",
}
View Source
var UC_USER_UPDATE_LOGIN_METHOD = apis.ApiSpec{
	Path:         "/api/users/<userID>/actions/update-login-method",
	Scheme:       "http",
	Method:       "POST",
	Custom:       updateLoginMethod,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserUpdateLoginMethodRequest{},
	ResponseType: apistructs.UserUpdateLoginMethodResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 修改用户登录方式",
}
View Source
var UC_USER_UPDATE_USERINFO = apis.ApiSpec{
	Path:         "/api/user/admin/update-userinfo",
	Scheme:       "http",
	Method:       "PUT",
	Custom:       updateUserInfo,
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.UserUpdateInfoRequset{},
	ResponseType: apistructs.UserUpdateInfoResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 更新用户信息",
}

Functions

func GetRealIP

func GetRealIP(request *http.Request) string

GetRealIP 获取真实ip

Types

This section is empty.

Jump to

Keyboard shortcuts

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