Go workspace (go.work) with 5 microservices + shared library: - gateway (8080), auth-service (8081), purchaser-service (8082) - textile-service (8083), washing-service (8084) - shared: proto definitions, common packages Infrastructure: docker-compose for local dev, K8s manifests for K3s cluster deployment (mysql/redis/etcd + traefik ingress). Frontend (iloom-flatten) added as git submodule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
606 B
Go
19 lines
606 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Profile struct {
|
|
ID string `json:"id"`
|
|
Username string `json:"username"`
|
|
RealName string `json:"real_name,omitempty"`
|
|
Phone string `json:"phone,omitempty"`
|
|
Email string `json:"email,omitempty"`
|
|
Avatar string `json:"avatar,omitempty"`
|
|
Status int `json:"status"`
|
|
CompanyID string `json:"company_id,omitempty"`
|
|
CompanyName string `json:"company_name,omitempty"`
|
|
Role string `json:"role,omitempty"`
|
|
IsMaster bool `json:"is_master"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|