# Feishu Messager
A restful service which can be used to send Feishu message & cards to a specific person or Feishu group chat. Basically it's just a wrapper of [Feishu OAPI Golang SDK](https://github.com/larksuite/oapi-sdk-go). 

## How to deploy the service
### Config
Firstly create a `conf.yaml` file under directory [/config](feishu_messager/config) by copyting and renaming [/config/conf.yaml.template].
### Build
Secondly you need to build the project by calling `make`.
``` shell
make
```
### Deploy
Just run `bin/message-service` under the [/feishu_messager](/feishu_messager) directory.

## How to call the restful service
*TODO*
## How to change the configuration
### db
``` yaml
db:
  type: 'mysql'
  address: '127.0.0.1:3306'
  user: 'root'
  password: 'passwd'
  database: 'example_db'
```
### server
``` yaml
  listen_ip: '0.0.0.0'
  listen_port: 4000
```
### feishu_bot
*TODO*