package model // CreateEnterpriseRequest 创建企业请求 type CreateEnterpriseRequest struct { EnterpriseName string `json:"enterprise_name" validate:"required"` // 企业名称 EnterpriseCode string `json:"enterprise_code"` // 企业编号 OwnerShopID *uint `json:"owner_shop_id"` // 归属店铺ID LegalPerson string `json:"legal_person"` // 法人代表 ContactName string `json:"contact_name"` // 联系人姓名 ContactPhone string `json:"contact_phone"` // 联系人电话 BusinessLicense string `json:"business_license"` // 营业执照号 Province string `json:"province"` // 省份 City string `json:"city"` // 城市 District string `json:"district"` // 区县 Address string `json:"address"` // 详细地址 } // UpdateEnterpriseRequest 更新企业请求 type UpdateEnterpriseRequest struct { EnterpriseName *string `json:"enterprise_name"` // 企业名称 EnterpriseCode *string `json:"enterprise_code"` // 企业编号 LegalPerson *string `json:"legal_person"` // 法人代表 ContactName *string `json:"contact_name"` // 联系人姓名 ContactPhone *string `json:"contact_phone"` // 联系人电话 BusinessLicense *string `json:"business_license"` // 营业执照号 Province *string `json:"province"` // 省份 City *string `json:"city"` // 城市 District *string `json:"district"` // 区县 Address *string `json:"address"` // 详细地址 } // EnterpriseResponse 企业响应 type EnterpriseResponse struct { ID uint `json:"id"` EnterpriseName string `json:"enterprise_name"` EnterpriseCode string `json:"enterprise_code"` OwnerShopID *uint `json:"owner_shop_id,omitempty"` LegalPerson string `json:"legal_person"` ContactName string `json:"contact_name"` ContactPhone string `json:"contact_phone"` BusinessLicense string `json:"business_license"` Province string `json:"province"` City string `json:"city"` District string `json:"district"` Address string `json:"address"` Status int `json:"status"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }