diff --git a/ui/db/models/venor.go b/ui/db/models/venor.go new file mode 100644 index 0000000..ac98f40 --- /dev/null +++ b/ui/db/models/venor.go @@ -0,0 +1,22 @@ +package models + +import "go.mongodb.org/mongo-driver/bson/primitive" + +const VENDOR_TYPE = "vendor" +const VENDOR_ACCOUNT_TYPE = "vendor_account" + +type Vendor struct { + CommonFields `bson:"obj_info"` + mongoId primitive.ObjectID `bson:"_id,omitempty"` + VendorId string `bson:"vendor_id,omitempty"` + Name string `bson:"name,omitempty"` + OAuthUrl string `bson:"oauth_url"` +} + +type VendorAccount struct { + CommonFields `bson:"obj_info"` + mongoId primitive.ObjectID `bson:"_id,omitempty"` + UserId string `bson:"user_id,omitempty"` + Secret string `bson:"secret,omitempty"` + VendorId string `bson:"vendor_id,omitempty"` +} diff --git a/ui/templates/dashboard_page.templ b/ui/templates/dashboard_page.templ index 8645771..b43cc89 100644 --- a/ui/templates/dashboard_page.templ +++ b/ui/templates/dashboard_page.templ @@ -123,7 +123,7 @@ templ DashboardContentNav(user *models.User) {
+ >Capstone