소스 검색

feat: support bound_channel_id in token CRUD

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat/alipay-payment
fengsilin 1 개월 전
부모
커밋
ffddf58e78
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      controller/token.go

+ 2
- 0
controller/token.go 파일 보기

@@ -194,6 +194,7 @@ func AddToken(c *gin.Context) {
AllowIps: token.AllowIps,
Group: token.Group,
CrossGroupRetry: token.CrossGroupRetry,
BoundChannelId: token.BoundChannelId,
}
err = cleanToken.Insert()
if err != nil {
@@ -274,6 +275,7 @@ func UpdateToken(c *gin.Context) {
cleanToken.AllowIps = token.AllowIps
cleanToken.Group = token.Group
cleanToken.CrossGroupRetry = token.CrossGroupRetry
cleanToken.BoundChannelId = token.BoundChannelId
}
err = cleanToken.Update()
if err != nil {


불러오는 중...
취소
저장