@Summary get all feishu connections @Description Get all feishu connections @Tags plugins/feishu @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /plugins/feishu/connections [GET]
(_ *plugin.ApiResourceInput)
| 169 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 170 | // @Router /plugins/feishu/connections [GET] |
| 171 | func ListConnections(_ *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { |
| 172 | var connections []models.FeishuConnection |
| 173 | err := connectionHelper.List(&connections) |
| 174 | if err != nil { |
| 175 | return nil, err |
| 176 | } |
| 177 | for idx, c := range connections { |
| 178 | connections[idx] = c.Sanitize() |
| 179 | } |
| 180 | return &plugin.ApiResourceOutput{Body: connections}, nil |
| 181 | } |
| 182 | |
| 183 | // @Summary get feishu connection detail |
| 184 | // @Description Get feishu connection detail |