.PHONY: run build clean deps

# 安装依赖
deps:
	go mod tidy
	go mod download

# 构建
build:
	go build -o bin/server ./cmd/server

# 运行
run:
	go run ./cmd/server

# 运行（指定配置）
run-prod:
	go run ./cmd/server config/config.yaml

# 清理
clean:
	rm -rf bin/

# 测试
test:
	go test ./...

# Docker 启动基础设施
docker-up:
	docker-compose up -d

# Docker 停止
docker-down:
	docker-compose down

# 代码格式化
fmt:
	go fmt ./...

# 代码检查
lint:
	golangci-lint run ./...
