bbs-backend/logic/appservice/bbs_service.go

24 lines
510 B
Go
Raw Permalink Normal View History

2024-11-19 21:08:28 +08:00
package appservice
import (
"bbs-backend/api/request"
"bbs-backend/common/errcode"
"bbs-backend/logic/domainservice"
)
func GetBBSInfo() (map[string]string, error) {
forumInfo, err := domainservice.GetBBSInfoDomainService()
if err != nil {
return nil, errcode.ErrInternalServerError
}
return forumInfo, nil
}
func UpdateBBSInfo(req request.UpdateBBSInfoRequest) error {
err := domainservice.UpdateBBSInfoDomainService(req)
if err != nil {
return errcode.ErrInternalServerError
}
return nil
}