Documentation ¶
Index ¶
- Constants
- func NewDbStore(db dal.Dal, basicRes core.BasicRes) *dbStore
- type Handlers
- func (h *Handlers) CreateTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) CreateUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) CreateUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) GetTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) GetUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) GetUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
Constants ¶
const TimeFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func (*Handlers) CreateTeam ¶
func (h *Handlers) CreateTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
CreateTeam godoc @Summary Upload teams.csv file @Description upload teams.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/teams.csv [put]
func (*Handlers) CreateUser ¶
func (h *Handlers) CreateUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
CreateUser godoc @Summary Upload users.csv file @Description upload users.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/users.csv [put]
func (*Handlers) CreateUserAccountMapping ¶
func (h *Handlers) CreateUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
CreateUserAccountMapping godoc @Summary Upload user_account_mapping.csv.csv file @Description upload user_account_mapping.csv.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/user_account_mapping.csv [put]
func (*Handlers) GetTeam ¶
func (h *Handlers) GetTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GetTeam godoc @Summary Get teams.csv file @Description get teams.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/teams.csv [get]
func (*Handlers) GetUser ¶
func (h *Handlers) GetUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GetUser godoc @Summary Get users.csv file @Description get users.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/users.csv [get]
func (*Handlers) GetUserAccountMapping ¶
func (h *Handlers) GetUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GetUserAccountMapping godoc @Summary Get user_account_mapping.csv.csv file @Description get user_account_mapping.csv.csv file @Tags plugins/org @Produce text/csv @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/user_account_mapping.csv [get]