-
今はrepositoryからdomainを返しているためrepositoryの中でexternal(とDB操作のdatabase)を呼んでいる
```txt
handler->service->repository->database,external
```
repositoryではrepository以上のこと(CRUD)をしたくないため、serviceかhandlerでこれをした…
-
毎回xxStore.なんたらってしてるのが冗長なのでstoreToRefsを使って分割代入するのがよさそう
メソッドはstoreToRefsを使わずにstoreを分割代入
-
強いて言えば本番環境じゃなくてステージング環境のclient idを使うと良さそうなんですがこっちはBot ConsoleがないのでAPIから直接取得する必要があるのと、デバッグ時にリクエストを飛ばす先をステージングのtraQにする必要があってちょっとめんどくさいのでまあ好きな方でいいです
_Originally posted by @ras0q in https://github.com/…
-
動画も
-
-
-
#824 #753 に関連
wtks updated
4 months ago
-
https://q.trap.jp/messages/1b952c13-a705-48a8-a95f-bf69545387eb
多分バグ
他に再現できる文字列があるかは不明
-
https://github.com/Ras96/traq-writer/blob/main/webhook.go#L34
ここbyte[]じゃなくてio.Readerのほうが一般的な気がするけどどうでしょうか(filesystemとかhttpとかから直接渡せるので嬉しさがある)
-
Twitterとかみたいに自分のアクセストークンはコンソールからぽちっと取得できると嬉しそう(可能?)