清楚默认选择的上号方式
This commit is contained in:
@@ -35,7 +35,7 @@ type CreateRequest struct {
|
|||||||
Title string `json:"title" binding:"required"`
|
Title string `json:"title" binding:"required"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
ServerRegion string `json:"server_region" binding:"required"`
|
ServerRegion string `json:"server_region" binding:"required"`
|
||||||
LoginPlatform string `json:"login_platform" binding:"required"`
|
LoginPlatform string `json:"login_platform"`
|
||||||
RankLevel string `json:"rank_level"`
|
RankLevel string `json:"rank_level"`
|
||||||
HafCoinAmount int64 `json:"haf_coin_amount"`
|
HafCoinAmount int64 `json:"haf_coin_amount"`
|
||||||
AssetSummary map[string]any `json:"asset_summary"`
|
AssetSummary map[string]any `json:"asset_summary"`
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ func (s *Service) FindMine(ownerID uint64, id uint64) (*ListingDTO, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func validateRequest(req CreateRequest) error {
|
func validateRequest(req CreateRequest) error {
|
||||||
if req.Title == "" || req.ServerRegion == "" || req.LoginPlatform == "" {
|
if req.Title == "" || req.ServerRegion == "" {
|
||||||
return ErrInvalidInput
|
return ErrInvalidInput
|
||||||
}
|
}
|
||||||
if req.PriceHourly <= 0 || req.DepositAmount < 0 {
|
if req.PriceHourly <= 0 || req.DepositAmount < 0 {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const form = reactive({
|
|||||||
season_insurance: "",
|
season_insurance: "",
|
||||||
stamina_level: "",
|
stamina_level: "",
|
||||||
load_level: "",
|
load_level: "",
|
||||||
login_method: "账号密码",
|
login_method: "",
|
||||||
online_start: "",
|
online_start: "",
|
||||||
online_end: "",
|
online_end: "",
|
||||||
ban_record: "",
|
ban_record: "",
|
||||||
@@ -196,7 +196,7 @@ async function handleSubmit() {
|
|||||||
title,
|
title,
|
||||||
description: form.remark,
|
description: form.remark,
|
||||||
server_region: form.server_region,
|
server_region: form.server_region,
|
||||||
login_platform: form.login_method || "扫码",
|
login_platform: form.login_method,
|
||||||
rank_level: form.rank_level,
|
rank_level: form.rank_level,
|
||||||
haf_coin_amount: Number(form.haf_coin_amount) * 10000,
|
haf_coin_amount: Number(form.haf_coin_amount) * 10000,
|
||||||
asset_summary: buildAssetSummary(),
|
asset_summary: buildAssetSummary(),
|
||||||
|
|||||||
Reference in New Issue
Block a user