B: Thinking about vendors
This commit is contained in:
parent
791a00c695
commit
aa0dd18e22
|
@ -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"`
|
||||||
|
}
|
|
@ -123,7 +123,7 @@ templ DashboardContentNav(user *models.User) {
|
||||||
<a
|
<a
|
||||||
class="text-white text-sm uppercase hidden lg:inline-block font-semibold"
|
class="text-white text-sm uppercase hidden lg:inline-block font-semibold"
|
||||||
href="./index.html"
|
href="./index.html"
|
||||||
>{ user.Email }</a>
|
>Capstone</a>
|
||||||
<form
|
<form
|
||||||
class="md:flex hidden flex-row flex-wrap items-center lg:ml-auto mr-3"
|
class="md:flex hidden flex-row flex-wrap items-center lg:ml-auto mr-3"
|
||||||
>
|
>
|
||||||
|
@ -268,6 +268,9 @@ templ DashboardTableWidget(title string, table map[string][]string) {
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
templ DashboardVendorWidget(list string) {
|
||||||
|
}
|
||||||
|
|
||||||
templ DashboardContent(user *models.User) {
|
templ DashboardContent(user *models.User) {
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
<div class="relative md:ml-64 bg-blueGray-50">
|
<div class="relative md:ml-64 bg-blueGray-50">
|
||||||
|
|
Loading…
Reference in New Issue