3
0

Refactor for new system service

- upd(all): indent spec.json files on all apps
- upd(auth): rename auth app to cmd
- upd(sam): move orgs, teams to system
- upd(system): extend spec.json for check
- upd(codegen): include system/
- upd(codegen): always generate spec files
- upd(sam): references from auth to system
This commit is contained in:
Tit Petric
2018-11-05 12:04:04 +01:00
parent 67c1a47b16
commit fdf24b3e2c
86 changed files with 2063 additions and 1370 deletions

View File

@@ -5,10 +5,10 @@ import (
"fmt"
"net/url"
authTypes "github.com/crusttech/crust/auth/types"
"github.com/crusttech/crust/internal/auth"
"github.com/crusttech/crust/internal/payload/outgoing"
samTypes "github.com/crusttech/crust/sam/types"
systemTypes "github.com/crusttech/crust/system/types"
)
const (
@@ -180,7 +180,7 @@ func ChannelPart(channelID, userID uint64) *outgoing.ChannelPart {
}
}
func User(user *authTypes.User) *outgoing.User {
func User(user *systemTypes.User) *outgoing.User {
if user == nil {
return nil
}
@@ -194,7 +194,7 @@ func User(user *authTypes.User) *outgoing.User {
}
}
func Users(users []*authTypes.User) *outgoing.UserSet {
func Users(users []*systemTypes.User) *outgoing.UserSet {
uu := make([]*outgoing.User, len(users))
for k, u := range users {
uu[k] = User(u)