邹方成 2a89a1ab9d
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 39s
feat(admin): 更新前端资源文件及修复相关功能
refactor(service): 修改banner和guild删除逻辑为软删除
fix(service): 修复删除操作使用软删除而非物理删除

build: 添加SQLite测试仓库实现
docs: 新增奖励管理字段拆分和批量抽奖UI改造文档

ci: 更新CI忽略文件
style: 清理无用资源文件
2025-11-19 01:35:55 +08:00

12 lines
267 B
Go

package guild
import (
"context"
"time"
)
func (s *service) DeleteGuild(ctx context.Context, id int64) error {
_, err := s.writeDB.Guild.WithContext(ctx).Where(s.readDB.Guild.ID.Eq(id)).Updates(map[string]any{"deleted_at": time.Now()})
return err
}