Documentation
¶
Index ¶
- Constants
- func FeedbackBadRequest(c *gin.Context, errorFlag int, errorMessage string)
- func FeedbackInternalServerError(c *gin.Context, errorFlag int, errorMessage string)
- func FeedbackOK(c *gin.Context, resp repository.Response)
- func GetIntParamFromRequest(c *gin.Context, paramName string) (int, error)
- func GetMagicIntParamFromRequest(c *gin.Context, paramName string) (int, error)
- func GetStringParamFromHeader(c *gin.Context, paramName string) (string, error)
- func GetStringParamFromRequest(c *gin.Context, paramName string) (string, error)
- func GetUserAuthTokenFromHeader(c *gin.Context) (string, error)
- func GetUserIDFromAuth(c *gin.Context) (int, error)
- type ActionRestHandler
- type ActionRestHandlerImpl
- func (impl ActionRestHandlerImpl) CreateAction(c *gin.Context)
- func (impl ActionRestHandlerImpl) DeleteAction(c *gin.Context)
- func (impl ActionRestHandlerImpl) FindActions(c *gin.Context)
- func (impl ActionRestHandlerImpl) GetAction(c *gin.Context)
- func (impl ActionRestHandlerImpl) PreviewAction(c *gin.Context)
- func (impl ActionRestHandlerImpl) RunAction(c *gin.Context)
- func (impl ActionRestHandlerImpl) UpdateAction(c *gin.Context)
- type AppRequest
- type AppRestHandler
- type AppRestHandlerImpl
- func (impl AppRestHandlerImpl) ConfigApp(c *gin.Context)
- func (impl AppRestHandlerImpl) CreateApp(c *gin.Context)
- func (impl AppRestHandlerImpl) DeleteApp(c *gin.Context)
- func (impl AppRestHandlerImpl) DuplicateApp(c *gin.Context)
- func (impl AppRestHandlerImpl) GetAllApps(c *gin.Context)
- func (impl AppRestHandlerImpl) GetMegaData(c *gin.Context)
- func (impl AppRestHandlerImpl) ReleaseApp(c *gin.Context)
- func (impl AppRestHandlerImpl) RenameApp(c *gin.Context)
- type BuilderRestHandler
- type BuilderRestHandlerImpl
- type InternalActionRestHandler
- type InternalActionRestHandlerImpl
- type PublicActionRestHandler
- type PublicActionRestHandlerImpl
- type PublicAppRestHandler
- type PublicAppRestHandlerImpl
- type ResourceRestHandler
- type ResourceRestHandlerImpl
- func (impl ResourceRestHandlerImpl) CreateResource(c *gin.Context)
- func (impl ResourceRestHandlerImpl) DeleteResource(c *gin.Context)
- func (impl ResourceRestHandlerImpl) FindAllResources(c *gin.Context)
- func (impl ResourceRestHandlerImpl) GetMetaInfo(c *gin.Context)
- func (impl ResourceRestHandlerImpl) GetResource(c *gin.Context)
- func (impl ResourceRestHandlerImpl) TestConnection(c *gin.Context)
- func (impl ResourceRestHandlerImpl) UpdateResource(c *gin.Context)
- type RoomRequest
- type RoomRestHandler
- type RoomRestHandlerImpl
Constants ¶
View Source
const ( // validate failed ERROR_FLAG_VALIDATE_ACCOUNT_FAILED = iota + 1 // start with 1 ERROR_FLAG_VALIDATE_REQUEST_BODY_FAILED ERROR_FLAG_VALIDATE_REQUEST_TOKEN_FAILED ERROR_FLAG_VALIDATE_REQUEST_PARAM_FAILED ERROR_FLAG_VALIDATE_VERIFICATION_CODE_FAILED ERROR_FLAG_PARSE_REQUEST_BODY_FAILED ERROR_FLAG_PARSE_REQUEST_URI_FAILED ERROR_FLAG_PARSE_INVITE_LINK_HASH_FAILED ERROR_FLAG_CAN_NOT_TRANSFER_OWNER_TO_PENDING_USER ERROR_FLAG_CAN_NOT_REMOVE_OWNER_FROM_TEAM ERROR_FLAG_SIGN_UP_EMAIL_MISMATCH ERROR_FLAG_OWNER_ROLE_MUST_BE_TRANSFERED ERROR_FLAG_PASSWORD_INVALIED ERROR_FLAG_TEAM_MUST_TRANSFERED_BEFORE_USER_SUSPEND // can note create ERROR_FLAG_CAN_NOT_CREATE_USER ERROR_FLAG_CAN_NOT_CREATE_TEAM ERROR_FLAG_CAN_NOT_CREATE_TEAM_MEMBER ERROR_FLAG_CAN_NOT_CREATE_INVITE ERROR_FLAG_CAN_NOT_CREATE_INVITATION_CODE ERROR_FLAG_CAN_NOT_CREATE_DOMAIN ERROR_FLAG_CAN_NOT_CREATE_ACTION ERROR_FLAG_CAN_NOT_CREATE_RESOURCE ERROR_FLAG_CAN_NOT_CREATE_APP // can not get resource ERROR_FLAG_CAN_NOT_GET_USER ERROR_FLAG_CAN_NOT_GET_TEAM ERROR_FLAG_CAN_NOT_GET_TEAM_MEMBER ERROR_FLAG_CAN_NOT_GET_INVITE ERROR_FLAG_CAN_NOT_GET_INVITATION_CODE ERROR_FLAG_CAN_NOT_GET_DOMAIN ERROR_FLAG_CAN_NOT_GET_ACTION ERROR_FLAG_CAN_NOT_GET_RESOURCE ERROR_FLAG_CAN_NOT_GET_RESOURCE_META_INFO ERROR_FLAG_CAN_NOT_GET_APP ERROR_FLAG_CAN_NOT_GET_BUILDER_DESCRIPTION // can not update resource ERROR_FLAG_CAN_NOT_UPDATE_USER ERROR_FLAG_CAN_NOT_UPDATE_TEAM ERROR_FLAG_CAN_NOT_UPDATE_TEAM_MEMBER ERROR_FLAG_CAN_NOT_UPDATE_INVITE ERROR_FLAG_CAN_NOT_UPDATE_INVITATION_CODE ERROR_FLAG_CAN_NOT_UPDATE_DOMAIN ERROR_FLAG_CAN_NOT_UPDATE_ACTION ERROR_FLAG_CAN_NOT_UPDATE_RESOURCE ERROR_FLAG_CAN_NOT_UPDATE_APP // can not delete ERROR_FLAG_CAN_NOT_DELETE_USER ERROR_FLAG_CAN_NOT_DELETE_TEAM ERROR_FLAG_CAN_NOT_DELETE_TEAM_MEMBER ERROR_FLAG_CAN_NOT_DELETE_INVITE ERROR_FLAG_CAN_NOT_DELETE_INVITATION_CODE ERROR_FLAG_CAN_NOT_DELETE_DOMAIN ERROR_FLAG_CAN_NOT_DELETE_ACTION ERROR_FLAG_CAN_NOT_DELETE_RESOURCE ERROR_FLAG_CAN_NOT_DELETE_APP // can not other operation ERROR_FLAG_CAN_NOT_CHECK_TEAM_MEMBER ERROR_FLAG_CAN_NOT_DUPLICATE_APP ERROR_FLAG_CAN_NOT_RELEASE_APP ERROR_FLAG_CAN_NOT_TEST_RESOURCE_CONNECTION // permission failed ERROR_FLAG_ACCESS_DENIED ERROR_FLAG_TEAM_CLOSED_THE_PERMISSION ERROR_FLAG_EMAIL_ALREADY_USED ERROR_FLAG_EMAIL_HAS_BEEN_TAKEN ERROR_FLAG_INVITATION_CODE_ALREADY_USED ERROR_FLAG_INVITATION_LINK_UNAVALIABLE ERROR_FLAG_TEAM_IDENTIFIER_HAS_BEEN_TAKEN ERROR_FLAG_USER_ALREADY_JOINED_TEAM ERROR_FLAG_SIGN_IN_FAILED ERROR_FLAG_NO_SUCH_USER // call resource failed ERROR_FLAG_SEND_EMAIL_FAILED ERROR_FLAG_SEND_VERIFICATION_CODE_FAILED ERROR_FLAG_CREATE_LINK_FAILED ERROR_FLAG_CREATE_UPLOAD_URL_FAILED ERROR_FLAG_EXECUTE_ACTION_FAILED ERROR_FLAG_GENERATE_SQL_FAILED // internal failed ERROR_FLAG_BUILD_TEAM_MEMBER_LIST_FAILED ERROR_FLAG_BUILD_TEAM_CONFIG_FAILED ERROR_FLAG_BUILD_TEAM_PERMISSION_FAILED ERROR_FLAG_BUILD_USER_INFO_FAILED ERROR_FLAG_BUILD_APP_CONFIG_FAILED ERROR_FLAG_GENERATE_PASSWORD_FAILED )
View Source
const PARAM_ACTION_ID = "actionID"
View Source
const PARAM_APP_ID = "appID"
View Source
const PARAM_ATTRIBUTE_ID = "attributeID"
View Source
const PARAM_AUTHORIZATION = "Authorization"
View Source
const PARAM_FROM_ID = "fromID"
View Source
const PARAM_INVITE_LINK_HASH = "inviteLinkHash"
View Source
const PARAM_RESOURCE_ID = "resourceID"
View Source
const PARAM_TARGET_USER_ID = "targetUserID"
View Source
const PARAM_TEAM_ID = "teamID"
View Source
const PARAM_TEAM_IDENTIFIER = "teamIdentifier"
View Source
const PARAM_TO_ID = "toID"
View Source
const PARAM_UNIT_ID = "unitID"
View Source
const PARAM_UNIT_TYPE = "unitType"
View Source
const PARAM_USER_ID = "userID"
View Source
const PARAM_USER_ROLE = "userRole"
View Source
const PARAM_VERSION = "version"
Variables ¶
This section is empty.
Functions ¶
func FeedbackBadRequest ¶ added in v1.9.0
func FeedbackInternalServerError ¶ added in v1.9.0
func FeedbackOK ¶ added in v1.9.0
func FeedbackOK(c *gin.Context, resp repository.Response)
func GetIntParamFromRequest ¶ added in v1.9.0
func GetMagicIntParamFromRequest ¶ added in v1.9.0
func GetStringParamFromHeader ¶ added in v1.9.0
func GetStringParamFromRequest ¶ added in v1.9.0
func GetUserAuthTokenFromHeader ¶ added in v1.9.0
Types ¶
type ActionRestHandler ¶
type ActionRestHandlerImpl ¶
type ActionRestHandlerImpl struct { AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewActionRestHandlerImpl ¶
func NewActionRestHandlerImpl(logger *zap.SugaredLogger, appService app.AppService, actionService action.ActionService, attrg *ac.AttributeGroup) *ActionRestHandlerImpl
func (ActionRestHandlerImpl) CreateAction ¶
func (impl ActionRestHandlerImpl) CreateAction(c *gin.Context)
func (ActionRestHandlerImpl) DeleteAction ¶
func (impl ActionRestHandlerImpl) DeleteAction(c *gin.Context)
func (ActionRestHandlerImpl) FindActions ¶
func (impl ActionRestHandlerImpl) FindActions(c *gin.Context)
func (ActionRestHandlerImpl) GetAction ¶
func (impl ActionRestHandlerImpl) GetAction(c *gin.Context)
func (ActionRestHandlerImpl) PreviewAction ¶
func (impl ActionRestHandlerImpl) PreviewAction(c *gin.Context)
func (ActionRestHandlerImpl) RunAction ¶
func (impl ActionRestHandlerImpl) RunAction(c *gin.Context)
func (ActionRestHandlerImpl) UpdateAction ¶
func (impl ActionRestHandlerImpl) UpdateAction(c *gin.Context)
type AppRequest ¶
type AppRequest struct { Name string `json:"appName" validate:"required"` InitScheme []interface{} `json:"initScheme"` }
type AppRestHandler ¶
type AppRestHandlerImpl ¶
type AppRestHandlerImpl struct { AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewAppRestHandlerImpl ¶
func NewAppRestHandlerImpl(logger *zap.SugaredLogger, appService app.AppService, actionService action.ActionService, attrg *ac.AttributeGroup, treeStateService state.TreeStateService) *AppRestHandlerImpl
func (AppRestHandlerImpl) ConfigApp ¶ added in v1.9.0
func (impl AppRestHandlerImpl) ConfigApp(c *gin.Context)
func (AppRestHandlerImpl) CreateApp ¶
func (impl AppRestHandlerImpl) CreateApp(c *gin.Context)
func (AppRestHandlerImpl) DeleteApp ¶
func (impl AppRestHandlerImpl) DeleteApp(c *gin.Context)
func (AppRestHandlerImpl) DuplicateApp ¶
func (impl AppRestHandlerImpl) DuplicateApp(c *gin.Context)
func (AppRestHandlerImpl) GetAllApps ¶
func (impl AppRestHandlerImpl) GetAllApps(c *gin.Context)
func (AppRestHandlerImpl) GetMegaData ¶
func (impl AppRestHandlerImpl) GetMegaData(c *gin.Context)
func (AppRestHandlerImpl) ReleaseApp ¶
func (impl AppRestHandlerImpl) ReleaseApp(c *gin.Context)
func (AppRestHandlerImpl) RenameApp ¶
func (impl AppRestHandlerImpl) RenameApp(c *gin.Context)
type BuilderRestHandler ¶ added in v1.9.0
type BuilderRestHandlerImpl ¶ added in v1.9.0
type BuilderRestHandlerImpl struct { AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewBuilderRestHandlerImpl ¶ added in v1.9.0
func NewBuilderRestHandlerImpl(logger *zap.SugaredLogger, builderService builder.BuilderService, attrg *ac.AttributeGroup) *BuilderRestHandlerImpl
func (BuilderRestHandlerImpl) GetTeamBuilderDesc ¶ added in v1.9.0
func (impl BuilderRestHandlerImpl) GetTeamBuilderDesc(c *gin.Context)
type InternalActionRestHandler ¶ added in v1.9.0
type InternalActionRestHandlerImpl ¶ added in v1.9.0
type InternalActionRestHandlerImpl struct { ResourceService resource.ResourceService AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewInternalActionRestHandlerImpl ¶ added in v1.9.0
func NewInternalActionRestHandlerImpl(logger *zap.SugaredLogger, resourceService resource.ResourceService, attrg *ac.AttributeGroup) *InternalActionRestHandlerImpl
func (InternalActionRestHandlerImpl) GenerateSQL ¶ added in v1.9.0
func (impl InternalActionRestHandlerImpl) GenerateSQL(c *gin.Context)
type PublicActionRestHandler ¶ added in v1.9.0
type PublicActionRestHandlerImpl ¶ added in v1.9.0
type PublicActionRestHandlerImpl struct { AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewPublicActionRestHandlerImpl ¶ added in v1.9.0
func NewPublicActionRestHandlerImpl(logger *zap.SugaredLogger, actionService action.ActionService, attrg *ac.AttributeGroup) *PublicActionRestHandlerImpl
func (PublicActionRestHandlerImpl) RunAction ¶ added in v1.9.0
func (impl PublicActionRestHandlerImpl) RunAction(c *gin.Context)
type PublicAppRestHandler ¶ added in v1.9.0
type PublicAppRestHandlerImpl ¶ added in v1.9.0
type PublicAppRestHandlerImpl struct { AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewPublicAppRestHandlerImpl ¶ added in v1.9.0
func NewPublicAppRestHandlerImpl(logger *zap.SugaredLogger, appService app.AppService, attrg *ac.AttributeGroup, treeStateService state.TreeStateService) *PublicAppRestHandlerImpl
func (PublicAppRestHandlerImpl) GetMegaData ¶ added in v1.9.0
func (impl PublicAppRestHandlerImpl) GetMegaData(c *gin.Context)
type ResourceRestHandler ¶
type ResourceRestHandlerImpl ¶
type ResourceRestHandlerImpl struct { AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewResourceRestHandlerImpl ¶
func NewResourceRestHandlerImpl(logger *zap.SugaredLogger, resourceService resource.ResourceService, attrg *ac.AttributeGroup) *ResourceRestHandlerImpl
func (ResourceRestHandlerImpl) CreateResource ¶
func (impl ResourceRestHandlerImpl) CreateResource(c *gin.Context)
func (ResourceRestHandlerImpl) DeleteResource ¶
func (impl ResourceRestHandlerImpl) DeleteResource(c *gin.Context)
func (ResourceRestHandlerImpl) FindAllResources ¶
func (impl ResourceRestHandlerImpl) FindAllResources(c *gin.Context)
func (ResourceRestHandlerImpl) GetMetaInfo ¶
func (impl ResourceRestHandlerImpl) GetMetaInfo(c *gin.Context)
func (ResourceRestHandlerImpl) GetResource ¶
func (impl ResourceRestHandlerImpl) GetResource(c *gin.Context)
func (ResourceRestHandlerImpl) TestConnection ¶
func (impl ResourceRestHandlerImpl) TestConnection(c *gin.Context)
func (ResourceRestHandlerImpl) UpdateResource ¶
func (impl ResourceRestHandlerImpl) UpdateResource(c *gin.Context)
type RoomRequest ¶
type RoomRequest struct {
Name string `json:"RoomName" validate:"required"`
}
type RoomRestHandler ¶
type RoomRestHandlerImpl ¶
type RoomRestHandlerImpl struct { RoomService room.RoomService AttributeGroup *ac.AttributeGroup // contains filtered or unexported fields }
func NewRoomRestHandlerImpl ¶
func NewRoomRestHandlerImpl(logger *zap.SugaredLogger, RoomService room.RoomService, attrg *ac.AttributeGroup) *RoomRestHandlerImpl
func (RoomRestHandlerImpl) GetAppRoomConn ¶
func (impl RoomRestHandlerImpl) GetAppRoomConn(c *gin.Context)
func (RoomRestHandlerImpl) GetDashboardRoomConn ¶
func (impl RoomRestHandlerImpl) GetDashboardRoomConn(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.