Commit Graph

6 Commits

Author SHA1 Message Date
Sinh 1034d2e077 feat: refactor ViettelFFM partner API integration
- Add the `const.go` file defining `ENV` type and constants `EnvStaging` and `EnvProd`
- Update `go.mod` to use `go 1.20` instead of `go 1.17`
- Introduce `model.go` file for ViettelFFM partner API structs
- Implement client methods for creating outbound requests and updating logistics information
- Implement an authentication method for the client with `AuthRes` struct
- Define constants for base URLs and authentication paths in ViettelFFM client
- Implement helper methods for getting base URL and making HTTP requests via NATS
- Update `util/httputil/const.go` to include `HeaderKeyAuthorization` constant

Signed-off-by: Sinh <luuvansinh555@gmail.com>
2024-06-14 17:31:02 +07:00
Sinh 4380f5339b Merge master into 'integrate-onpoint' 2022-10-13 16:45:04 +07:00
trunglt251292 d21ec08233 [Update] Package name 2022-10-10 10:45:16 +07:00
Sinh 04cc91bb5f add header content type for OP 2022-10-04 16:29:34 +07:00
Sinh 26390c4633 add webhook util for onpoint 2022-09-19 14:34:55 +07:00
Sinh c0cdae1240 define global care api 2022-08-15 14:23:26 +07:00