bbs-backend/logic/appservice/bbs_service.go
2024-11-19 21:08:28 +08:00

24 lines
510 B
Go

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
}